46 lines
1.6 KiB
Markdown
46 lines
1.6 KiB
Markdown
# SymClaw — Symbolic Mathematics Engine
|
|
|
|
Deterministic symbolic computing via Rust. Parse, simplify, differentiate, integrate, solve equations, expand series, render LaTeX — all guaranteed correct.
|
|
|
|
## Tools
|
|
|
|
### symclaw-eval
|
|
Evaluate or simplify a mathematical expression.
|
|
- Input: `{"action": "simplify", "expr": "x^2 + 2*x + 1"}`
|
|
- Output: `{"success": true, "result": "(x + 1)^2", "latex": "(x + 1)^{2}"}`
|
|
|
|
### symclaw-derive
|
|
Differentiate an expression.
|
|
- Input: `{"action": "differentiate", "expr": "sin(x^2)", "var": "x"}`
|
|
- Output: `{"success": true, "result": "2*x*cos(x^2)", "latex": "2 x \\cos(x^{2})"}`
|
|
|
|
### symclaw-integrate
|
|
Symbolic integration.
|
|
- Input: `{"action": "integrate", "expr": "x^2", "var": "x"}`
|
|
- Definite: `{"action": "integrate", "expr": "x^2", "var": "x", "lower": "0", "upper": "1"}`
|
|
|
|
### symclaw-solve
|
|
Solve equations (expr = 0).
|
|
- Input: `{"action": "solve", "expr": "x^2 - 5*x + 6", "var": "x"}`
|
|
- Output: `{"success": true, "solutions": ["2", "3"]}`
|
|
|
|
### symclaw-taylor
|
|
Taylor/Maclaurin series.
|
|
- Input: `{"action": "taylor", "expr": "sin(x)", "var": "x", "order": 5}`
|
|
|
|
### symclaw-eval-numeric
|
|
Numeric evaluation with variable substitution.
|
|
- Input: `{"action": "eval", "expr": "x^2 + y", "vars": {"x": 3.0, "y": 1.0}}`
|
|
|
|
### symclaw-latex
|
|
Render expression as LaTeX.
|
|
- Input: `{"action": "latex", "expr": "x^2/3 + sqrt(y)"}`
|
|
|
|
### symclaw-plot
|
|
Generate plot data points.
|
|
- Input: `{"action": "plot_data", "expr": "sin(x)", "var": "x", "start": -6.28, "end": 6.28, "steps": 200}`
|
|
|
|
## Setup
|
|
Binary: `symclaw-skill` (reads JSON from stdin, writes JSON to stdout)
|
|
Build: `cargo build --release -p symclaw-skill`
|