Conversion Between Symbolic and Numeric
Symbolic Math Toolbox™ lets you convert data between symbolic and MATLAB® numeric data types. You can also perform numeric computations with high precision using variable-precision arithmetic.
Functions
Topics
- 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™.
- Find Almost Integers with High-Precision Arithmetic
Find almost integers, or numbers that are very close to integers, using variable-precision arithmetic in Symbolic Math Toolbox.
- Decimal Digits of PI
This example shows how to use variable-precision arithmetic to investigate the decimal digits of pi using Symbolic Math Toolbox™.
- Generate MATLAB Functions from Symbolic Expressions
Convert symbolic expressions to MATLAB functions that accepts numeric values.
- Change Output Format of Symbolic and Variable-Precision Arithmetic
Change output format of symbolic and variable-precision arithmetic.