math
Perform symbolic math with SymPy: solve equations, compute derivatives, integrals, limits, series, and matrix operations. Enter an expression and operation to get exact, citable results.
Instructions
Symbolic math with SymPy: solve equations, derivatives, integrals, limits, series, matrices.
operation is one of: simplify, expand, factor, apart, together, solve,
nsolve, diff, integrate, limit, series, summation, product, matrix,
dsolve, inequality. Syntax as in calc, plus variables; an equation is
written x**2 - 5*x + 6 = 0 (or ==).
solve: expression="2*x + 1 = 7" (or expressions=[...] for a system, variables=["x", "y"]); domain real|complex. Each solution has
values(exact),numericandverified(substituted back) - check it.diff: expression, variable, order. integrate: expression, variable, optional lower/upper for a definite integral. limit: expression, variable, point (e.g. "oo"), direction "+"/"-". series: variable, point, order. summation/product: variable, lower, upper.
nsolve: numeric root near x0. inequality: expression="x**2 < 4".
dsolve: dy/dx = expression, in symbols x and y (e.g. "y - x").
matrix: matrix_op det|inv|rank|rref|eigenvals|transpose|multiply and matrix=[[1, 2], [3, 4]] (matrix2 for multiply).
variablecan be omitted when the expression has only one symbol. Hard timeout (10 s): on timeout, simplify the input instead of retrying. Cite results as theircite, e.g. [L-000042].
Keywords: solve for x, equation, derivative, integral, differentiate, simplify, factor, limit, series, matrix determinant, inverse matrix, eigenvalues, resolver, ecuación, despejar, derivada, integral, simplificar, factorizar, límite, serie, matriz, determinante, autovalores.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | No | ||
| lower | No | ||
| order | No | ||
| point | No | ||
| upper | No | ||
| domain | No | real | |
| matrix | No | ||
| matrix2 | No | ||
| function | No | ||
| variable | No | ||
| direction | No | ||
| matrix_op | No | ||
| operation | Yes | ||
| variables | No | ||
| expression | No | ||
| expressions | No |