[SciPy-User] Find and interpolate zero value

Pauli Virtanen pav@iki...
Fri Mar 29 11:50:16 CDT 2013


29.03.2013 18:42, Pauli Virtanen kirjoitti:
[clip]
> To find zeros, interpolate y-vs-x instead of x-vs-y

If there are multiple roots, you can use splines:

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.InterpolatedUnivariateSpline.html

See the roots() method.

-- 
Pauli Virtanen



More information about the SciPy-User mailing list