Symbolic
symbolicRun symbolic math operations: solve equations, solve linear systems, simplify expressions, or compute limits. Choose the operation and provide the expression to get exact algebraic results.
Instructions
Symbolic algebra, selected by op — replaces the four former
standalone tools solve_expression, solve_linear, simplify_expression
and limit_expression, retired in 0.12.0 (CHANGELOG.md). Every op
returns exactly its former tool's own result, plus op (additive).
op="solve" (was solve_expression) — the roots of one equation:
'x**2 - 4 = 0', '2*x + 1 = 7'. For a system of several equations, use
op="solve_linear". For general constraint satisfiability (inequalities,
boolean constraints, multiple solvers), use z3_check. Returns
solutions as a list of strings alongside the parsed equation and
variable. Used by this op: expr (required), var (optional).
op="solve_linear" (was solve_linear) — a system of equations sharing
variables. Example: system='x + y = 10; x - y = 2', variables='x, y'.
Used by this op: system, variables (both required).
op="simplify" (was simplify_expression) — simplify, factor, and expand
an expression — algebraic forms, not solving (use op="solve") and not a
numeric value (use calc_exact). Returns simplified, factored, and
expanded as strings alongside the parsed original. Used by this op:
expr (required).
op="limit" (was limit_expression) — asymptotic behaviour: limit of
expr as var -> point. 'symbolic("limit", "n*log(n)/n**2", "n")'
returns 0 — settles complexity arguments faster than arguing. Used by
this op: expr (required), var (optional), point (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Which symbolic operation to run: 'solve', 'solve_linear', 'simplify', or 'limit' (each has its own required params) | |
| var | No | Variable to solve for or take the limit over; optional, default 'x'; used by op='solve'/'limit' | |
| expr | No | Expression or equation to solve/simplify/take the limit of; required by op='solve'/'simplify'/'limit' | |
| point | No | Point `var` approaches for op='limit'; optional, default 'oo' (infinity) | |
| system | No | ';'-separated equations for op='solve_linear', e.g. 'x + y = 10; x - y = 2'; required by that op | |
| variables | No | Comma-separated variable names for op='solve_linear', e.g. 'x, y'; required by that op |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||