WorkingPrecision

WorkingPrecision

is an option for various numerical operations that specifies how many digits of precision should be maintained in internal computations.

Details

  • WorkingPrecision is an option for such functions as NIntegrate and FindRoot.
  • Setting WorkingPrecision->n causes all internal computations to be done to at most ndigit precision.
  • Setting WorkingPrecision->MachinePrecision causes all internal computations to be done with machine numbers.
  • Even if internal computations are done to ndigit precision, the final results you get may have much lower precision.

Examples

open allclose all

Basic Examples  (2)

Find a root using 60-digit precision arithmetic:

In[1]:=
Click for copyable input
Out[1]=

Solve a differential equation using 24-digit precision arithmetic:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Applications  (1)

Possible Issues  (2)

See Also

PrecisionGoal  AccuracyGoal  Precision  Accuracy  N  Tolerance

Tutorials

Introduced in 1988
(1.0)
| Updated in 2003
(5.0)