Back to skills
SKILL.md
Symbolic Computation Sympy
ASecurityUse computer algebra for mathematics: SymPy symbolic algebra, calculus, equation solving, series, matrices, ODEs, simplification, LaTeX output, and verification of hand derivations. Includes a Python helper script. Use whenever exact symbolic results or verification of algebra is needed.
- 8 stars
- 0 votes
- 0 copies
- 3 views
- Added November 9, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add hamzabellouch/agent-skills --skill symbolic-computation-sympy --agent claude-codeAre you the author of Symbolic Computation Sympy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hamzabellouch-symbolic-computation-sympy)---
name: symbolic-computation-sympy
description: "Use computer algebra for mathematics: SymPy symbolic algebra, calculus, equation solving, series, matrices, ODEs, simplification, LaTeX output, and verification of hand derivations. Includes a Python helper script. Use whenever exact symbolic results or verification of algebra is needed."
---
# Symbolic Computation with SymPy
## When to use
Exact simplification, factoring, limits, derivatives, integrals, series, equation systems, ODE solutions, matrix operations; verifying human derivations; generating LaTeX.
## Quick reference
```python
import sympy as sp
x, y, t = sp.symbols('x y t', real=True)
sp.simplify(expr); sp.expand(expr); sp.factor(expr); sp.apart(expr); sp.together(expr)
sp.diff(f, x, 2); sp.integrate(f, (x, 0, sp.oo)); sp.limit(f, x, 0)
sp.series(f, x, 0, 6); sp.solve(sp.Eq(a, b), x); sp.nsolve(eq, x, 1.0)
sp.dsolve(sp.Eq(y(t).diff(t, 2) + y(t), 0), y(t))
M = sp.Matrix([[1, 2], [3, 4]]); M.eigenvects(); M.det(); M.inv(); M.jordan_form()
sp.latex(expr); sp.lambdify(x, f, 'numpy')
```
- Declare assumptions (positive=True, integer=True) for correct simplification.
- Use rational numbers (sp.Rational(1,3)) not floats for exact results.
- Cross-check symbolic results numerically with random inputs.
## Script
`scripts/sympy_tools.py` includes: verify_identity (random-point testing + simplify), solve_and_check, taylor_error_bound, and a demo.
## Pitfalls
simplify may not reach the form you want (try trigsimp, radsimp, powsimp); integrate can fail or return piecewise results; sqrt branch and absolute value issues for complex inputs; timeouts on huge expressions (use series, numerical fallback).
Files in this skill
- SKILL.md
- scripts/sympy_tools.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.