bundles / scipy 1.18.0 / scipy / interpolate / _interpolate / PPoly / roots
function
scipy.interpolate._interpolate:PPoly.roots
Signature
def roots(self, discontinuity = True, extrapolate = None)Summary
Find real roots of the piecewise polynomial.
Parameters
discontinuity: bool, optionalWhether to report sign changes across discontinuities at breakpoints as roots.
extrapolate: {bool, 'periodic', None}, optionalIf bool, determines whether to return roots from the polynomial extrapolated based on first and last intervals, 'periodic' works the same as False. If None (default), use
self.extrapolate.
Returns
roots: ndarrayRoots of the polynomial(s).
If the PPoly object describes multiple polynomials, the return value is an object array whose each element is an ndarray containing the roots.
See also
Aliases
scipy.interpolate.PPoly.roots