API Documentation Generated by Endo, 2006-08-14
Cumulatively integrate y(x) using samples along the given axis and the composite trapezoidal rule. If x is None, spacing given by dx is assumed.
Compute a definite integral using fixed-order Gaussian quadrature.
Description:
Integrate func from a to b using Gaussian quadrature of order n.
Inputs:
func -- a Python function or method to integrate
(must accept vector inputs)
a -- lower limit of integration
b -- upper limit of integration
args -- extra arguments to pass to function.
n -- order of quadrature integration.
Outputs: (val, None)
val -- Gaussian quadrature approximation to the integral.
Compute a definite integral using fixed-tolerance Gaussian quadrature.
Description:
Integrate func from a to b using Gaussian quadrature
with absolute tolerance tol.
Inputs:
func -- a Python function or method to integrate.
a -- lower limit of integration.
b -- upper limit of integration.
args -- extra arguments to pass to function.
tol -- iteration stops when error between last two iterates is less than
tolerance.
maxiter -- maximum number of iterations.
vec_func -- True or False if func handles arrays as arguments (is
a "vector" function ). Default is True.
Outputs: (val, err)
val -- Gaussian quadrature approximation (within tolerance) to integral.
err -- Difference between last two estimates of the integral.
Uses Romberg integration to integrate y(x) using N samples along the given axis which are assumed equally spaced with distance dx. The number of samples must be 1 + a non-negative power of two: N=2**k + 1
Romberg integration of a callable function or method. Returns the integral of |function| (a function of one variable) over |interval| (a sequence of length two containing the lower and upper limit of the integration interval), calculated using Romberg integration up to the specified |accuracy|. If |show| is 1, the triangular array of the intermediate results will be printed. If |vec_func| is True (default is False), then |function| is assumed to support vector arguments.
Integrate y(x) using samples along the given axis and the composite Simpson's rule. If x is None, spacing of dx is assumed.
If there are an even number of samples, N, then there are an odd number of intervals (N-1), but Simpson's rule requires an even number of intervals. The parameter 'even' controls how this is handled as follows:
| Local name | Refers to |
|---|---|
| add | numpy.add |
| arange | numpy.arange |
| asarray | numpy.asarray |
| diff | numpy.diff |
| empty | numpy.empty |
| isinf | numpy.isinf |
| isscalar | numpy.isscalar |
| ones | numpy.ones |
| p_roots | scipy.special.orthogonal.p_roots |
| real | numpy.real |
| sum | numpy.sum |
| trapz | numpy.trapz |