solve_ode
Solve initial-value ODE systems from right-hand side expressions and initial conditions over a time span, returning numerical solutions at chosen time points.
Instructions
Solve an initial-value ODE system with scipy solve_ivp.
``rhs`` is one expression (state variable ``y``) or a list of expressions
(state variables ``y0, y1, ...`` in the same order as ``y0``). The time
variable is ``t``; keys of ``params`` are injected as extra constants.
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": {
"rhs": "<rhs>",
"y0": "<y0>",
"t_span": "<t_span>"
},
"name": "solve_ode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y0 | Yes | ||
| rhs | Yes | ||
| method | No | RK45 | |
| params | No | ||
| t_eval | No | ||
| t_span | Yes |