ode_solve
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "ode_solve"
}
}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' |