Skip to content

About

A community-enhanced version of Symbolica, for modern computer algebra in Python and Rust

Resources

Contributing

Stars

11 stars

Watchers

1 watching

Forks

Repository files navigation


logo

Symbolica website Zulip Chat Symbolica website

Community-enhanced Symbolica

Symbolica is a computer algebra system for Python and Rust. This package adds community tools for symbolic integration, tensor algebra, and high-energy physics.

The community extensions include:

  • Symbolic integration with step-by-step explanations.
  • Tensor networks, Dirac algebra, and color algebra with Spenso and Idenso.
  • Feynman diagrams, process generation, models, and kinematics with FeynKit.
  • Exact and numerical loop integration, integral reduction, and sector decomposition.
  • Massive vacuum integrals with Vakint.

Installation

Install with Python 3.9 or newer:

pip install symbolica

In Pyodide 314.x (Python 3.14), install with micropip:

import micropip
await micropip.install("symbolica")

Vakint and compiled tensor evaluators require a native Python installation.

Usage

Use Symbolica to manipulate expressions and compute integrals:

from symbolica import E, S

x = S("x")
print(E("(x+1)^2").expand())
print(E("x^2").integrate(x))

Import community tools from symbolica.community:

from symbolica.community import tensor
from symbolica.community.hepkit import FeynmanDiagram, Model, Generator, TensorReducer

For a complete introduction to Symbolica, see the documentation.

Examples

Community

Ask questions and discuss Symbolica on Zulip. For contributions, see the contribution guidelines. For independent extension development, see the extension author guide. For local WASM builds, see the build guide.

About

A community-enhanced version of Symbolica, for modern computer algebra in Python and Rust

Resources

Contributing

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages