Skip to content

SymPy Symbolic Math

Lets the agent do exact symbolic algebra, calculus, equation solving and code generation with SymPy

Stars
55,780
Licence
MIT
Files
8 files

What it does

Once installed, the agent works with exact mathematical expressions (like sqrt(2) rather than 1.414...) instead of rounding numbers, so it can solve equations, take derivatives and integrals, manipulate matrices, do physics calculations, and turn formulas into Python, C, Fortran or LaTeX code. It also follows guidance on declaring assumptions and solution domains so results are mathematically careful.

Great for

  • Students checking algebra, calculus or physics homework with exact answers
  • Engineers or scientists who need symbolic formulas converted into lambdify or code-generation output
  • Researchers who want symbolic derivations rather than numerical approximations

Skip it if

  • Purely numerical workloads on large datasets, where NumPy or SciPy is the better tool (the skill itself says so)
  • Evaluating untrusted user-supplied expressions: parse_expr, sympify and lambdify can execute code, and the skill notes that regex or local_dict is not a security boundary

Try asking

  • “Solve this system of equations symbolically and tell me if there are real solutions only”
  • “Compute the derivative and integral of this expression and simplify the result”
  • “Generate a C function from this symbolic formula using code generation”
  • “Find the eigenvalues of this symbolic 3x3 matrix with exact values”
Step-by-step guide: how to use SymPy Symbolic MathInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 8 original files, the MIT licence and an attribution note.

    sympy.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip sympy.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip sympy.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • State the domain and assumptions up front (for example, real-only or positive variables) so the agent does not return complex or branch-dependent answers by accident
  • Ask the agent to verify candidate solutions in the original equation, and to report ConditionSet results as unresolved rather than as no solutions
  • Only pass trusted expressions into parsing or lambdify steps; do not feed untrusted user input directly into them

What's inside

  • references/advanced-topics.md
  • references/code-generation-printing.md
  • references/core_capabilities.md
  • references/core-capabilities.md
  • references/matrices-linear-algebra.md
  • references/physics-mechanics.md
  • references/review.md
  • SKILL.md

Redistributed unmodified from K-Dense-AI/scientific-agent-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.