rref
list[list[float]]
How to use it
rref is exposed by the Sagemath MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the rref tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Sagemath MCP
docker run -p 8314:8314 sagemath-mcp:latest --transport streamable-httpOther tools in Sagemath MCP (39)
Evaluate a symbolic expression and return both its string representation and numeric value (when possible). Uses Sage's sageeval() internally with pre-declared variables x, y, z, t.
bool
string
float or string
Compute the symbolic derivative of an expression. Calls Sage's diff(expr, var, order) internally.
string or null
list[float]
float
string or list[string]
Expand products, powers, and trigonometric/logarithmic identities using Sage's expand().
string
Factor a symbolic expression or integer using Sage's factor().
string
Compute indefinite or definite integrals. Calls Sage's integrate() function.
list[list[float]]
string or null
Compute the limit of an expression as a variable approaches a point. Calls Sage's limit() function.
string or null
list[list[float]]
list[list[float]]
list[list[float]]
Multiply two matrices over the Symbolic Ring (SR). Input matrices are nested lists of numbers.
Perform a single matrix operation. Supports six operations on matrices over the Symbolic Ring.
string
int (>= 1)
string
int
string or null
"expression" or "statement"
Compute a Taylor or Laurent series expansion around a point. Calls Sage's .series() method.
Apply Sage's simplify() function to reduce a symbolic expression to a simpler form.
Solve a single equation or a system of simultaneous equations. Calls Sage's solve() function. Equations are parsed by splitting on =: the string "x^2 - 1 = 0" becomes the Sage equation x^2 - 1 == 0.
Solve an ordinary differential equation using Sage's desolve(). The equation is specified as a string using Sage's diff() notation. The solver returns a general solution with arbitrary constants (C, K1, K2, etc.).
string
float
list[list[float]]
string or null
string
bool