integral_simpson13
Approximate the definite integral of a mathematical function over an interval using the composite Simpson 1/3 rule, complete with error estimates.
Instructions
Approximate the definite integral of f(x) on [a, b] with composite Simpson 1/3.
Args: func_str: Math expression in x, e.g. "sin(x)/x". a: Lower integration limit. b: Upper integration limit (must be > a). n: Number of subintervals (must be even). Error is O(h^4). epsilon: Point in [a, b] used to report the truncation error bound. precision: Rounding digits.
Returns: Dict with the approximated integral, error estimates and table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| n | Yes | ||
| epsilon | No | ||
| func_str | Yes | ||
| precision | No |