This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Numbers and Precision

Variable-precision arithmetic and elementary number-theoretic operations

The Symbolic Math Toolbox™ can perform numeric calculations with variable precision by using vpa. For details, see Increase Precision of Numeric Calculations. To understand when to use symbolic, variable-precision, or double-precision arithmetic, see Choose Symbolic or Numeric Arithmetic. The Symbolic Math Toolbox also provides functions for rounding operations and for working with complex numbers.


digitsChange variable precision used
doubleConvert symbolic values to MATLAB double precision
vpaVariable-precision arithmetic
ceilRound symbolic matrix toward positive infinity
conjSymbolic complex conjugate
fixRound toward zero
floorRound symbolic matrix toward negative infinity
fracSymbolic matrix element-wise fractional parts
imagImaginary part of complex number
maxLargest elements
minSmallest elements
realReal part of complex number
roundSymbolic matrix element-wise round


Choose Symbolic or Numeric Arithmetic

Compare and contrast symbolic, variable-precision, and numeric arithmetic.

Numeric to Symbolic Conversion

Convert floating-point numbers to exact symbolic numbers.

Increase Precision of Numeric Calculations

Increase precision arbitrarily with variable-precision arithmetic.

Recognize and Avoid Round-Off Errors

Round-off errors in symbolic and variable-precision calculations.

Increase Speed by Reducing Precision

Increase speed of calculations by reducing precision of calculations.

Was this topic helpful?