numerical_integrate
Calculates definite integrals of math expressions using Simpson's, trapezoid, or midpoint methods, with configurable bounds and intervals.
Instructions
Numerical integration of a math expression using Simpson's rule, trapezoid, or midpoint method.
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>",
"a": "<a>",
"b": "<b>"
},
"name": "numerical_integrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Lower bound of integration. | |
| b | Yes | Upper bound of integration. | |
| method | No | Method: simpson (default), trapezoid, or midpoint. | |
| intervals | No | Number of intervals (default 1000, max 1000000). | |
| expression | Yes | Math expression in x (e.g. 'x^2 + 1'). |