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.
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'). |