符号与数值之间的转换
您可以使用 Symbolic Math Toolbox™ 在符号数据类型与 MATLAB® 数值数据类型之间转换数据。您还可以使用可变精度算术执行高精度的数值计算。
函数
主题
- 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.