core API

The core package defines the result type shared by the next-generation numerical routines. A routine returns an Estimate instead of a tuple whose fields have no names.

NumericalStatus

Describes how a routine stopped.

VariantMeaning
ConvergedThe stopping criterion of the routine was met.
MaxIterationsThe iteration, interval or term limit was reached before the criterion was met. The value is the last estimate.
InvalidInputAn argument was out of range (for example a non-positive step or a limit of zero). The value is 0 and no function evaluation was made.
RoundoffStagnationReserved for routines that detect roundoff-limited progress. No routine returns it yet.

Estimate[T]

FieldMeaning
value : TThe computed value.
estimated_error : TAn empirical error estimate. It is not a guaranteed bound.
evaluations : IntThe number of function evaluations.
iterations : IntThe number of iterations, subdivisions or terms used.
status : NumericalStatusHow the routine stopped.
diagnostics : ArithmeticDiagnosticsArithmetic flags from Luna-Flow/arithmetic; empty for the Double routines.

Estimate::new(value, estimated_error, evaluations, iterations, status, diagnostics?) builds an estimate, with empty diagnostics by default. Estimate and NumericalStatus derive Eq and Debug.