AccuracyGoal

AccuracyGoal

is an option for various numerical operations which specifies how many effective digits of accuracy should be sought in the final result.

Details

Examples

open allclose all

Basic Examples  (2)

Approximate a numerical integral to at least 8 digits of accuracy:

Use precision (relative error) as the basis for error control in solving an ODE:

The relative error is small:

Without specifying the AccuracyGoal, the relative error is much larger:

Scope  (2)

Find a minimum with convergence criteria and :

Use convergence criteria and :

Use convergence criteria and not possible at machine precision:

Use a higher working precision to allow convergence:

Solve a differential equation using high-precision arithmetic:

Use AccuracyGoal and PrecisionGoal at half the 32-digit working precision:

This corresponds to the automatic setting used by NDSolve:

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