Skip to main content
Glama
agmonetti

mathmethods-mcp

by agmonetti

dynamic_2d_lanchester_solve

Solve Lanchester combat models analytically to determine winner and survivors, and numerically simulate force trajectories over time.

Instructions

Simulate a Lanchester combat model x' = f(x,y), y' = g(x,y) with analytic time-to-annihilation.

Args: eq_x, eq_y: Math expressions (classic default is x'=-αy, y'=-βx). alpha, beta, gamma, epsilon, mu, delta: Greek parameter values. x0, y0: initial force sizes. t0, t_fin, h: simulation grid.

Returns: Dict with the analytic winner/survivors, state equation and the numerical trajectories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hNo
muNo
t0No
x0No
y0No
betaNo
eq_xNo-α * y
eq_yNo-β * x
alphaNo
deltaNo
gammaNo
t_finNo
epsilonNo

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