bundles / scipy latest / scipy / integrate / _ivp / ivp / solve_event_equation
function
scipy.integrate._ivp.ivp:solve_event_equation
source: /scipy/integrate/_ivp/ivp.py :52
Signature
def solve_event_equation ( event , sol , t_old , t ) Summary
Solve an equation corresponding to an ODE event.
Extended Summary
The equation is event(t, y(t)) = 0, here y(t) is known from an ODE solver using some sort of interpolation. It is solved by scipy.optimize.brentq with xtol=atol=4*EPS.
Parameters
event: callableFunction
event(t, y).sol: callableFunction
sol(t)which evaluates an ODE solution betweent_oldandt.t_old, t: floatPrevious and new values of time. They will be used as a bracketing interval.
Returns
root: floatFound solution.
Aliases
-
scipy.integrate._ivp.ivp.solve_event_equation