Skip to main content
Glama
agmonetti

mathmethods-mcp

by agmonetti

integral_trapecio

Numerically integrate a function over an interval using the composite trapezoidal rule, obtaining the approximate integral, error bounds, and a table.

Instructions

Approximate ∫ₐᵇ f(x) dx with the composite trapezoidal rule.

Args: func_str: Math expression in x. a, b: Integration limits (b > a). n: Number of subintervals. epsilon: Optional point in [a, b] for the truncation error bound. precision: Rounding digits.

Returns: Dict with the 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