When you need exact mathematical results instead of floating-point approximations, this is your tool. It handles symbolic algebra, calculus (derivatives, integrals, limits), equation solving, and symbolic linear algebra. The skill covers everything from basic simplification to physics calculations and code generation via lambdify or LaTeX export. Key practice: always use Rational or S() for exact arithmetic instead of Python floats, and leverage symbol assumptions (positive, real, integer) to get cleaner simplifications. When you need to evaluate expressions thousands of times, convert to NumPy functions with lambdify rather than repeatedly calling subs(). Requires Python 3.9+ and SymPy 1.14+.

skills.sh installs
2.1K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill sympy --agent claude-code

Installs into .claude/skills of the current project.

Files

SymPy - Symbolic Mathematics in Python

Overview

SymPy is a Python library for symbolic mathematics that enables exact computation using mathematical symbols rather than numerical approximations. This skill provides comprehensive guidance for performing symbolic algebra, calculus, linear algebra, equation solving, physics calculations, and code generation using SymPy.

Installation

Reviewed against current official documentation and executed with SymPy 1.14.0 on Python 3.13.3 (2026-10-01). Core SymPy requires Python 3.9+; the tested NumPy 2.5.3 / SciPy 1.18.1 stack needs Python 3.12+. SymPy 1.14.0 requires mpmath>=1.1,<1.4; use the compatible 1.3.0, not the newer 1.4.x release. See verification and official sources for coverage.

# Install SymPy using uv
uv pip install "sympy==1.14.0"

# Optional: for lambdify and plotting examples
uv pip install numpy scipy matplotlib

Check your version:

import sympy
print(sympy.__version__)

When to Use This Skill

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
AI & Agent Building, Data Science & ML, Python
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1k-dense-ai avatarpytorch-lightningk-dense-ai/scientific-agent-skillsDeep learning framework (PyTorch Lightning / lightning package). Organize PyTorch code into LightningModules, configure Trainers for multi-GPU/TPU, implement da2.1Kskills.sh installs
2datadog-labs avatardd-apmdatadog-labs/agent-skillsAPM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM s2.1Kskills.sh installs
3k-dense-ai avatarnetworkxk-dense-ai/scientific-agent-skillsCreate, analyze, and visualize complex networks and graphs in Python with NetworkX. Use when working with network/graph data structures, computing graph algorit2.1Kskills.sh installs
4k-dense-ai avataraeonk-dense-ai/scientific-agent-skillsThis skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation,2.1Kskills.sh installs
5k-dense-ai avatartransformersk-dense-ai/scientific-agent-skillsHugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio, and multimodal tas2.1Kskills.sh installs
6k-dense-ai avatarshapk-dense-ai/scientific-agent-skillsExplain and audit machine-learning predictions with SHAP. Use for selecting SHAP explainers and maskers, computing and validating feature attributions, handling2.1Kskills.sh installs