pyseobnr.eob.dynamics.integrate_ode_prec.parabolaExtrema
- pyseobnr.eob.dynamics.integrate_ode_prec.parabolaExtrema(ff0: float, ffm1: float, ff1: float, tt0: float, ttm1: float, tt1: float)[source]
Compute the extremum of a parabola from 3 points (idx-1, idx, idx+1).
- Parameters:
ff0 (float) – value of the function at the index idx
ffm1 (float) – value of the function at the index idx-1
ff1 (float) – value of the function at the index idx+1
tt0 (float) – value of the time array at the index idx
ttm1 (float) – value of the time array at the index idx-1
tt1 (float) – value of the time array at the index idx+1
- Returns:
time of the extremum, and value of the function at the extremum
- Return type:
tuple