rational_interp_zero

sofia_redux.toolkit.splines.spline_utils.rational_interp_zero(p1, f1, p2, f2, p3, f3)[source]

Determines p where (u + p + v)/(p + w) = 0.

Given three points (p1, f1), (p2, f2), (p3, f3), rational_interp_zero gives the value of p such that the rational interpolating function of the form r(p) = (u*p+v)/(p+w) equals zero at p.

Adapted from the Fortran function fprati in the fitpack library.

Parameters:
p1float
f1float
p2float
f2float
p3float
f3float
Returns:
p, p1, f1, p2, f2, p3, f3float