SymPy Symbolic Math Assistant
Guides Claude to do exact symbolic math in Python with SymPy — algebra, calculus, solvers, matrices — and export results as code or LaTeX.
Dev & CodingIntermediate★ 33,030⑂ 3,248AI score 9/10Last updated: Aug 9, 2026
What it does
- Directs Claude to use SymPy for exact symbolic computation instead of floating-point approximation: equation solving (
solve,solveset,linsolve,nonlinsolve,dsolve), derivatives, integrals, limits, series, symbolic linear algebra, number theory, geometry and physics. - Encodes practical rules: declare symbols first, use assumptions like
positive=True, keep arithmetic exact withRational/S, and switch tolambdifyfor fast NumPy evaluation. - Includes integration snippets for NumPy, SciPy and Matplotlib, code generation (Python/C/Fortran), LaTeX/pretty printing, and a troubleshooting list of five common failures.
- Deep-dive material lives in modular reference files (core capabilities, matrices, physics/mechanics, advanced topics, code generation) loaded on demand.
Who it's for
- Researchers and students who need verifiable symbolic results and LaTeX-ready formulas.
- Scientific/engineering developers deriving expressions symbolically before compiling them into numeric functions.
- Anyone who needs closed-form answers rather than rounded numbers.
Examples
- "Solve x² − 5x + 6 = 0 and verify each root" →
solvethensimplify(expr.subs(...)) == 0. - "Differentiate sin(x)/x and plot it over [-10, 10]" → symbolic
diff→lambdify(..., 'numpy')→ Matplotlib. - "Evaluate ∫₀^∞ x·e^(−x²) dx and give me the LaTeX" →
integratepluslatex()output.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/HEAD/skills/sympy/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/sympy folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/sympy/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git && mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/sympy ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and confirm Python 3.9+ with
python --version. - Install the library:
pip install "sympy>=1.14"(optionallypip install numpy scipy matplotlibfor the lambdify/plotting examples). - Clone the skill repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/sympy ~/.claude/skills/ - Verify that
~/.claude/skills/sympycontains bothSKILL.mdand thereferences/folder — the detailed guides won't load without it. - Restart Claude Code and try a prompt such as "Use SymPy to solve this ODE symbolically".
View source on GitHub ↗License: MIT