Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Numerical Computation / Options  /
WorkingPrecision

  • WorkingPrecision is an option for various numerical operations which specifies how many digits of precision should be maintained in internal computations.
  • WorkingPrecision is an option for such functions as NIntegrate and FindRoot.
  • Setting WorkingPrecision-> n causes all internal computations to be done to at most n-digit precision.
  • Even if internal computations are done to n-digit precision, the final results you get may have much lower precision.
  • See the Mathematica book: Section 3.9.3Section 3.9.3.
  • See also: AccuracyGoal, Precision, Accuracy, N.

    Further Examples

    This evaluates the integral using 40-digit precision for internal computations. The precision goal in this case is automatically set to 30 digits.

    In[1]:=

    Out[1]=

    The difference from the exact result is given as a number close to 0.

    In[2]:=

    Out[2]=

    In fact, the result was correct to about 33 digits.

    In[3]:=

    Out[3]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.