splantider(tck, n=1)
The splder function is the inverse operation of this function. Namely, splder(splantider(tck))
is identical to tck, modulo rounding error.
Spline whose antiderivative to compute
Order of antiderivative to evaluate. Default: 1
Spline of order k2=k+n representing the antiderivative of the input spline.
Compute the spline for the antiderivative (integral) of a given spline.
from scipy.interpolate import splrep, splder, splantider, splev
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)
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them