bundles / scipy 1.17.1 / scipy / interpolate / _ppoly / real_roots
cython_function_or_method
scipy.interpolate._ppoly:real_roots
Signature
def real_roots ( c , x , y , report_discont , extrapolate ) Summary
Compute real roots of a real-valued piecewise polynomial function.
Extended Summary
If a section of the piecewise polynomial is identically zero, the values (x[begin], nan) are appended to the root list.
If the piecewise polynomial is not continuous, and the sign changes across a breakpoint, the breakpoint is added to the root set if report_discont is True.
Parameters
c, xPolynomial coefficients, as above
y: floatFind roots of
pp(x) == y.report_discont: bint, optionalWhether to report discontinuities across zero at breakpoints as roots
extrapolate: bint, optionalWhether to consider roots obtained by extrapolating based on first and last intervals.
Aliases
-
scipy.interpolate._ppoly.real_roots