Skip to content
UPEEC

Differential Equations

Simulate systems described by ODEs with solve_ivp.

Advanced
Comments 0
from scipy.integrate import solve_ivp
R, C, V = 1e3, 1e-3, 5
sol = solve_ivp(lambda t, v: (V - v) / (R * C), [0, 5], [0], max_step=0.01)

Covers circuits, motors, populations, orbits — anything defined by rates of change.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.