$MaxExtraPrecision
gives the maximum number of extra digits of precision to be used in functions such as N.
Details
- The default value of $MaxExtraPrecision is 50.
- You can use Block[{$MaxExtraPrecision=n},expr] to reset the value of $MaxExtraPrecision temporarily during the evaluation of expr.
- $MaxExtraPrecision is used implicitly in various exact numerical computations, including equality tests, comparisons, and functions such as Round and Sign.
Examples
open allclose allBasic Examples (1)
Scope (2)
Allow as much extra precision as possible:
The default of 50 is not sufficient for some calculations:
The result does not have the requested precision:
Often raising $MaxExtraPrecision by just over the precision deficit will be sufficient:
Possible Issues (1)
For hidden zeros, raising $MaxExtraPrecision will not help:
Allowing unlimited extra precision can lead to running out of memory:
Relative error measured by Precision is not defined at zero, so use Accuracy as a goal:
Symbolic simplification may resolve the dilemma conclusively:
Text
Wolfram Research (1996), $MaxExtraPrecision, Wolfram Language function, https://reference.wolfram.com/language/ref/$MaxExtraPrecision.html.
CMS
Wolfram Language. 1996. "$MaxExtraPrecision." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MaxExtraPrecision.html.
APA
Wolfram Language. (1996). $MaxExtraPrecision. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MaxExtraPrecision.html