Skip to main content
Glama
agmonetti

mathmethods-mcp

by agmonetti

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

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes
nYes
epsilonNo
func_strYes
precisionNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agmonetti/mathmethods-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server