pwtools.num.Spline.get_root

Spline.get_root(x0=None, xab=None, **kwds)

Return x where y(x) = 0 by calculating the root of the fit function.

In Spline, this is the same as Spline.invsplev(0.0, ...), i.e. lookup x where y=0, which is exactly the root.

Parameters:
  • xab (x0 or) – see _findroot()

  • **kwds – passed to _findroot()

Returns:

xx – y(xx) = 0

Return type:

scalar