Skip to content
UPEEC

Numerical Simulation and ODE Solving

Model systems with differential equations and integrate them numerically.

Intermediate
Comments 0
from scipy.integrate import solve_ivp
# RC circuit discharge: dV/dt = -V/(RC)
sol = solve_ivp(lambda t, v: -v / (1e3 * 1e-6), (0, 0.005), [5.0])

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.