Symbolic Math Toolbox™ lets you convert data between symbolic and commonly used MATLAB® data types. You can also perform numeric computations with high precision using variable-precision arithmetic.
cell2sym | Convert cell array to symbolic array |
double | Convert symbolic values to MATLAB double precision |
poly2sym | Create symbolic polynomial from vector of coefficients |
sym | Create symbolic variables, expressions, functions, matrices |
sym2cell | Convert symbolic array to cell array |
sym2poly | Extract vector of all numeric coefficients, including zeros, from symbolic polynomial |
symfun | Create symbolic functions |
vpa | Variable-precision arithmetic (arbitrary-precision arithmetic) |
Numeric to Symbolic Conversion
Convert floating-point numbers to exact symbolic numbers.
Choose Numeric or Symbolic Arithmetic
Compare and contrast double-precision, variable-precision, and symbolic arithmetic.
Increase Precision of Numeric Calculations
Increase precision arbitrarily with variable-precision arithmetic.
Compute Binomial Coefficients Exactly
This example shows how to get precise values for binomial coefficients and find probabilities in coin-tossing experiments using the Symbolic Math Toolbox.
Numerical Computations With High Precision
This example shows how to use variable-precision arithmetic to obtain high precision computations using Symbolic Math Toolbox™.
This example shows how to use variable-precision arithmetic to investigate the decimal digits of pi using Symbolic Math Toolbox™.