QuadratureResult

QuadratureResult()

The value :func:quadrature returns: the integral, with the run’s report attached.

A float subclass, so it is the integral wherever a number is wanted and carries the two extra fields where they are wanted. This mirrors corehydror’s quadrature(), which returns the integral with status and function_evaluations as R attributes.

Attributes

Name Type Description
status str One of "Success", "MaximumFunctionEvaluationsReached", "MaximumIterationsReached", "Failure" or "None" – the ported Numerics IntegrationStatus.
function_evaluations int or None The number of times f was called. None for one of the five fixed-rule quadrature() methods (P2 “math extras”: "gauss_legendre", "gauss_legendre20", "simpsons_fixed", "trapezoidal_fixed", "midpoint"), whose ported Numerics statics report no such count.
standard_error float or None The rule’s own error estimate, the ported StandardError: the square root of the accumulated squared differences between the two nested estimates the adaptive methods compare. Zero when the interval never needed subdividing, or when the driven class (P2 “math extras”: "simpsons", "trapezoidal", "gauss_lobatto") has no such estimate at all; None for the same five fixed-rule methods function_evaluations is.
chi_squared float or None The Chi-Squared statistic, an approximate diagnostic for a run’s own internal consistency across its independent evaluations. Only :func:quadrature_nd with method="vegas" (P2 “math extras”) sets this; every other caller of QuadratureResult leaves it None.