math_numeric
Solve numerical math tasks: evaluate high-precision expressions, sums, integrals, roots, optimizations, linear/integer programs, ODEs, polynomial roots, constant identification, and curve fits.
Instructions
Numerical math with mpmath, SciPy and NumPy: arbitrary precision evaluation (up to 1000 digits), infinite sums, numerical integrals, roots, constrained and global optimization, linear and integer programming, ODE initial value problems, polynomial roots, closed-form identification of constants, curve fitting.
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": {
"operation": "<operation>"
},
"name": "math_numeric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | No | Initial guess, or initial state for ode_ivp. | |
| expr | No | Expression, equation with '=', ';'-separated equations, or ';'-separated ODE right-hand sides. | |
| bounds | No | [a, b] or [[x,a,b],...] for quad/nsum, [lo, hi] bracket for root, [[lo, hi], ...] per variable for minimize/linprog, [t0, t1] for ode_ivp. | |
| data_x | No | ||
| data_y | No | ||
| digits | No | ||
| method | No | auto | |
| integer | No | linprog: all variables integer (MILP). | |
| samples | No | Output points for ode_ivp. | |
| direction | No | minimize | |
| operation | Yes | ||
| variables | No | ||
| constraints | No | Constraints like 'x + y <= 4' or 'x*y = 1'. |