Skip to main content


logo

Symbolica website Zulip Chat Symbolica website Codecov

Symbolica ⊆ Modern Computer Algebra

Symbolica is a blazing fast computer algebra system for Python and Rust, born of a need to push the boundaries of computations in science and enterprise. Check out the live Jupyter Notebook demo!

For documentation and more, see symbolica.io.

Quick Example

Symbolica allows you to build and manipulate mathematical expressions, for example from a Jupyter Notebook:

A demo of Symbolica

You are able to perform these operations from the comfort of a programming language that you (probably) already know, by using Symbolica's bindings to Python and Rust:

A demo of Symbolica

Installation

Symbolica can be installed for Python 3.9 or newer using pip:

pip install symbolica

Visit the Get Started page for detailed installation instructions.

For Pyodide 314.x (Python 3.14), install the PyEmscripten wheel with micropip:

import micropip
await micropip.install("symbolica")

The WebAssembly build uses Symbolica's Rust numeric backends. Native code generation is unavailable in this build.

Examples

Below we list some examples of the features of Symbolica. Check the guide for a complete overview.

Pattern matching

Variables ending with a _ are wildcards that match to any subexpression. In the following example we try to match the pattern f(w1_,w2_):

from symbolica import *
x, y, w1_, w2_, f = S('x','y','w1_','w2_', 'f')
e = f(3,x)*y**2+5
r = e.replace_all(f(w1_,w2_), f(w1_ - 1, w2_**2))
print(r)

which yields y^2*f(2,x^2)+5.

Solving a linear system

Solve a linear system in x and y with a parameter c:

from symbolica import *

x, y, c, f = S('x', 'y', 'c', 'f')

x_r, y_r = Expression.solve_linear_system(
    [f(c)*x + y + c, y + c**2], [x, y])
print('x =', x_r, ', y =', y_r)

which yields x = (-c+c^2)*f(c)^-1 and y = -c^2.

Series expansion

Perform a series expansion in x:

from symbolica import *
e = E('exp(5+x)/(1-x)').series(S('x'), 0, 3)

print(e)

which yields (exp(5))+(2*exp(5))*x+(5/2*exp(5))*x^2+(8/3*exp(5))*x^3+𝒪(x^4).

Rational arithmetic

Symbolica is world-class in rational arithmetic, outperforming Mathematica, Maple, Form, Fermat, and other computer algebra packages. Simply convert an expression to a rational polynomial:

from symbolica import *
p = E('(x*y^2*5+5)^2/(2*x+5)+(x+4)/(6*x^2+1)').to_rational_polynomial()
print(p)

which yields (45+13*x+50*x*y^2+152*x^2+25*x^2*y^4+300*x^3*y^2+150*x^4*y^4)/(5+2*x+30*x^2+12*x^3).

Community packages

Version 3.0 ships core Symbolica and symbolic integration, including step-by-step explanations, through symbolica-integrate 2.0. Integration rule metadata is compressed to reduce download size.

Native wheels also include Spenso, Idenso, FeynKit HEP tools, Vakint, and the example extension. PyEmscripten wheels include Idenso, Spenso, HEP, and the example extension. Vakint and Spenso's compiled evaluators require a native installation.

The HEP classes are available directly under symbolica.community.hepkit, including FeynmanDiagram, Model, Generator, CffGenerator, and TensorReducer.

Development

Follow the development and discussions on Zulip!

Metadata

Release files for symbolica 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for symbolica 3.0.3
File Size Uploaded Provenance Actions
symbolica-3.0.3.tar.gz 2.6 MB Without provenance Details for symbolica-3.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for symbolica 3.0.3
File Actions
symbolica-3.0.3-cp314-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.14 abi3 PyEmscripten 2026.0+ WebAssembly Details for symbolica-3.0.3-cp314-abi3-pyemscripten_2026_0_wasm32.whl
symbolica-3.0.3-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for symbolica-3.0.3-cp39-abi3-win_amd64.whl
symbolica-3.0.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for symbolica-3.0.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
symbolica-3.0.3-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for symbolica-3.0.3-cp39-abi3-macosx_11_0_arm64.whl
symbolica-3.0.3-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for symbolica-3.0.3-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 343.4 MB

Release files / symbolica-3.0.3.tar.gz

Download URL symbolica-3.0.3.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
4949f93f6612e8af5e4889d0604e830ce9d86e5e0fb828aacd7e0c2df3f37599
BLAKE2b-256 checksum
How to use checksums
f6686282ee2e97d40631f4194beac2973d5a5458454b3e5d4088df6cd33310e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / symbolica-3.0.3-cp314-abi3-pyemscripten_2026_0_wasm32.whl

Download URL symbolica-3.0.3-cp314-abi3-pyemscripten_2026_0_wasm32.whl
Size 42.7 MB
Tags CPython 3.14 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
ba4e17a3f3b8b570d241eca39e65c2a20a6a01ea7ce70ad79812cdd26ed0cc9f
BLAKE2b-256 checksum
How to use checksums
6f20df76d1f20cc9bcc874e7b4ad95e5b683c5c6e5ece874128f9b764786ac1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / symbolica-3.0.3-cp39-abi3-win_amd64.whl

Download URL symbolica-3.0.3-cp39-abi3-win_amd64.whl
Size 76.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
80144d879377249e610ca339aed82b755f1dfbdc80e15e166178c939a42baeed
BLAKE2b-256 checksum
How to use checksums
c38bafa0dbcbb72f2bdd14adcdb1c4e677c7f9c987d561f5e5a2ed7f440103ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / symbolica-3.0.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL symbolica-3.0.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 75.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
3d4325d6741ecc9994971c7a5c8e29958c4fa6f0ac219c00cb8302a2b2ebe7d6
BLAKE2b-256 checksum
How to use checksums
637f07308938defbf96a0d0ca20de3fb3c44a3e07dbb197e3bc7a591774ef379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / symbolica-3.0.3-cp39-abi3-macosx_11_0_arm64.whl

Download URL symbolica-3.0.3-cp39-abi3-macosx_11_0_arm64.whl
Size 67.2 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
459328cfaa156c6b979bfa168c8aaa552ead1477e1dd1990a79c9905cca5800b
BLAKE2b-256 checksum
How to use checksums
0bb357a04916296f56049d1c1b0354f2bc90f6cd05cca44f1342f66485b07480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / symbolica-3.0.3-cp39-abi3-macosx_10_12_x86_64.whl

Download URL symbolica-3.0.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 78.5 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c7f11e7cd407a7c550dc7f658d367b6962e25ebdd78a1c3233f87735236655e9
BLAKE2b-256 checksum
How to use checksums
ddfa828eadc9669ddc91e2d5c9b2921cc1338f05989a7030a570e306f4040e60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for symbolica 3.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.3 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page