is an option for various numerical operations which specifies how many effective digits of precision should be sought in the final result.
- PrecisionGoal is an option for such functions as NIntegrate and NDSolve.
- PrecisionGoal->Automatic normally yields a precision goal equal to half the setting for WorkingPrecision.
- PrecisionGoal->Infinity specifies that precision should not be used as the criterion for terminating the numerical procedure. AccuracyGoal is typically used in this case.
- Even though you may specify PrecisionGoal->n, the results you get may sometimes have much less than n‐digit precision.
- In most cases, you must set WorkingPrecision to be at least as large as PrecisionGoal.
- PrecisionGoal effectively specifies the relative error allowed in a numerical procedure.
- With PrecisionGoal->p and AccuracyGoal->a, the Wolfram Language attempts to make the numerical error in a result of size x be less than .
Examplesopen allclose all
Basic Examples (2)
Without specifying the PrecisionGoal, the error is much larger:
This corresponds to the automatic setting used by NDSolve:
Wolfram Research (1991), PrecisionGoal, Wolfram Language function, https://reference.wolfram.com/language/ref/PrecisionGoal.html (updated 2003).
Wolfram Language. 1991. "PrecisionGoal." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/PrecisionGoal.html.
Wolfram Language. (1991). PrecisionGoal. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PrecisionGoal.html