Symbolic Math Toolbox | Search  Help Desk | |
digits | Examples | See Also |
Set variable precision accuracy.
digits(d) d = digits digits
digits
specifies the number of significant decimal digits that Maple uses to do variable precision arithmetic (VPA). The default value is 32 digits.
digits(d)
sets the current VPA accuracy to d
digits.
digits
returns the current VPA accuracy.
If
z = 1.0e-16 x = 1.0e+2 digits(14)then
y = vpa(x*z+1)uses 14-digit decimal arithmetic and returns
y = 1.0000000000000Whereas
digits(15) y = vpa(x*z+1)used 15-digit decimal arithmetic and returns
y = 1.00000000000001
double
, vpa