Skip to content

inducer/pymbolic

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

954ae63 · Dec 25, 2024
Dec 10, 2024
Dec 10, 2024
Sep 30, 2024
Dec 25, 2024
Dec 10, 2024
Jun 23, 2020
Aug 9, 2016
Dec 10, 2024
Oct 24, 2021
Oct 2, 2022
Feb 16, 2024
Oct 9, 2016
Jun 30, 2005
Oct 9, 2016
Aug 31, 2024
Jul 8, 2005
Dec 19, 2024
Aug 2, 2022
Sep 30, 2024

Repository files navigation

Pymbolic: Easy Expression Trees and Term Rewriting

Gitlab Build Status Github Build Status Python Package Index Release Page Zenodo DOI for latest release

Pymbolic is a small expression tree and symbolic manipulation library. Two things set it apart from other libraries of its kind:

  • Users can easily write their own symbolic operations, simply by deriving from the builtin visitor classes.
  • Users can easily add their own symbolic entities to do calculations with.

Pymbolic currently understands regular arithmetic expressions, derivatives, sparse polynomials, fractions, term substitution, expansion. It automatically performs constant folding, and it can compile its expressions into Python bytecode for fast(er) execution.

If you are looking for a full-blown Computer Algebra System, look at sympy or PyGinac. If you are looking for a basic, small and extensible set of symbolic operations, pymbolic may well be for you.

Resources: