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:
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:
Installation
Visit the Get Started page for detailed installation instructions.
Python
Symbolica can be installed for Python >3.5 using pip:
Rust
If you want to use Symbolica as a library in Rust, simply include it in the Cargo.toml:
[]
= "1.2"
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_):
, , , , =
= ***2+5
=
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:
, , , =
, =
which yields x = (-c+c^2)*f(c)^-1 and y = -c^2.
Series expansion
Perform a series expansion in x:
=
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:
=
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).
Development
Follow the development of Symbolica and the open-source spin-off projects numerica and graphica on Zulip!