bundles / scipy latest / scipy / interpolate / _fitpack_py / splantider
function
scipy.interpolate._fitpack_py:splantider
Signature
def splantider ( tck , n = 1 ) Summary
Compute the spline for the antiderivative (integral) of a given spline.
Parameters
tck: BSpline instance or a tuple of (t, c, k)Spline whose antiderivative to compute
n: int, optionalOrder of antiderivative to evaluate. Default: 1
Returns
: BSpline instance or a tuple of (t2, c2, k2)Spline of order k2=k+n representing the antiderivative of the input spline. A tuple is returned iff the input argument
tckis a tuple, otherwise a BSpline object is constructed and returned.
Notes
The splder function is the inverse operation of this function. Namely, splder(splantider(tck)) is identical to tck, modulo rounding error.
Array API Standard Support
splantider is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
from scipy.interpolate import splrep, splder, splantider, splev import numpy as np x = np.linspace(0, np.pi/2, 70) y = 1 / np.sqrt(1 - 0.8*np.sin(x)**2) spl = splrep(x, y)✓
splev(1.7, spl), splev(1.7, splder(splantider(spl)))
✗ispl = splantider(spl)
✓splev(np.pi/2, ispl) - splev(0, ispl)
✗from scipy.special import ellipk
✓ellipk(0.8)
✗See also
Aliases
-
scipy.interpolate.splantider