This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / integrate / _ivp / ivp / solve_event_equation

function

scipy.integrate._ivp.ivp:solve_event_equation

source: build-install/usr/lib/python3.14/site-packages/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 : callable

Function event(t, y).

sol : callable

Function sol(t) which evaluates an ODE solution between t_old and t.

t_old, t : float

Previous and new values of time. They will be used as a bracketing interval.

Returns

root : float

Found solution.

Aliases

  • scipy.integrate._ivp.ivp.solve_event_equation