WorkingPrecision

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 1988
(1.0)
| Updated in 2003
(5.0)