ode_solve
Read-onlyIdempotent
Solve ordinary differential equations numerically with Euler or RK4 methods by providing dy/dt as a JS expression in terms of t and y.
Instructions
Solve an ordinary differential equation numerically using Euler or RK4 method. Provide the ODE as a JS expression in terms of t and y.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| t0 | No | Initial time (default 0) | |
| y0 | No | Initial value y(t0) (default 1) | |
| steps | No | Number of steps (default 100, max 10000) | |
| t_end | No | End time (default 1) | |
| method | No | Integration method (default rk4) | |
| expression | Yes | JS expression for dy/dt in terms of t and y, e.g. 't + y' |