Skip to main content
Glama
agmonetti

mathmethods-mcp

by agmonetti

ode_heun

Solve first-order ODEs y'=f(x,y) with initial conditions using Heun's predictor-corrector method. Get numerical and exact solutions with error estimates.

Instructions

Solve y'(x) = f(x, y), y(x0) = y0 with Heun's predictor-corrector method (2nd order).

Args: ecuacion_str: Right-hand side f(x, y). x0, y0: Initial condition. xf: Final x (must be > x0). h: Step size (must be positive). tol: Optional tolerance flag for the final error. precision: Rounding digits.

Returns: Dict with the numerical solution, exact solution (when available) and errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hYes
x0Yes
xfYes
y0Yes
tolNo
precisionNo
ecuacion_strYes

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