{ } Raw JSON

bundles / scipy 1.17.1 / scipy / integrate / _rules / _base / NestedFixedRule / estimate_error

function

scipy.integrate._rules._base:NestedFixedRule.estimate_error

source: /scipy/integrate/_rules/_base.py :304

Signature

def   estimate_error ( self f a b args = () )

Summary

Estimate the error of the approximation for the integral of f in rectangular region described by corners a and b.

Parameters

f : callable

Function to estimate error for. f must have the signature::

f(xndarray, *args) -> ndarray

f should accept arrays x of shape::

(npoints, ndim)

and output arrays of shape::

(npoints, output_dim_1, ..., output_dim_n)

In this case, estimate will return arrays of shape::

(output_dim_1, ..., output_dim_n)

a, b : ndarray

Lower and upper limits of integration as rank-1 arrays specifying the left and right endpoints of the intervals being integrated over. Infinite limits are currently not supported.

args : tuple, optional

Additional positional args passed to f, if any.

Returns

err_est : ndarray

Result of error estimation. If f returns arrays of shape (npoints, output_dim_1, ..., output_dim_n), then est will be of shape (output_dim_1, ..., output_dim_n).

Aliases

  • scipy.integrate._rules.NestedFixedRule.estimate_error