sympy
Computer algebra system (CAS) in Python
Decision gist · record as of 2026-08-14
Yes. SymPy is a well-maintained, actively developed library with no known vulnerabilities, low install friction, and permissive licensing. It is the standard choice for symbolic mathematics in Python and is suitable for research, education, and production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low friction installation as a pure-Python wheel with a single runtime dependency (mpmath).
- Actively maintained with recent commits and no known vulnerabilities.
License · maintenance · safety
BSD (permissive) — BSD license (permissive) allows commercial and private use with minimal restrictions—include a copy of the license in distributions.
last release 2025-04-27 (474 days) · last repo commit 2026-08-13 · 14,862 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 196,415,976 downloads/mo, #209 on PyPI
Alternatives
Verify before relying
pip install sympy
from sympy import Symbol, cos
x = Symbol('x')
e = 1/cos(x)
print(e.series(x, 0, 10))What it is and what it does
SymPy is a mature computer algebra system (CAS) written in pure Python that handles symbolic mathematics—exact algebraic manipulation, calculus, solving equations, and simplifying expressions. It depends only on mpmath for arbitrary-precision arithmetic and runs on Python 3.9 and later across CPython and PyPy implementations.
Developers use SymPy to work with mathematical expressions symbolically rather than numerically, which is essential for deriving formulas, solving systems of equations exactly, computing derivatives and integrals symbolically, and generating LaTeX output. It is widely used in scientific computing, engineering, physics simulations, and educational contexts where symbolic reasoning is required.
Use it for
- Derive and simplify algebraic expressions symbolically for research or publication.
- Solve systems of equations exactly without floating-point approximation.
- Compute derivatives, integrals, and series expansions for calculus-based problems.
- Generate LaTeX or other formatted output of mathematical expressions.
- Build educational tools or interactive notebooks that require symbolic math.
- Prototype mathematical algorithms before implementing them numerically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
SymPy is a well-maintained, actively developed library with no known vulnerabilities, low install friction, and permissive licensing. It is the standard choice for symbolic mathematics in Python and is suitable for research, education, and production use.
Install
sympy on PyPI
Before you install
Low friction installation as a pure-Python wheel with a single runtime dependency (mpmath). Actively maintained with recent commits and no known vulnerabilities.
Requires Python 3.9 or later.
License in practice
BSD license (permissive) allows commercial and private use with minimal restrictions—include a copy of the license in distributions.
Quickstart
pip install sympy
from sympy import Symbol, cos
x = Symbol('x')
e = 1/cos(x)
print(e.series(x, 0, 10))
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagempmath |
| Maintenance | Actively maintained 474 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 196,415,976 / month, #209 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: Physics |
Evidence: sympy-1.14.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “calculus and equation solving”
- sympySymPy is a Python library for symbolic mathematics, performing…
- latex2sympy2-extendedParses LaTeX math expressions and converts them to SymPy symbolic…
- sagemathSageMath is a comprehensive open-source mathematics software system…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also latex2sympy2 · symengine · latex2sympy2-extended · pysr · audmath · optlang · Theano · Theano-PyMC