Getting StartedΒΆ
After installing GAlgebra (see section Installing GAlgebra below), in a Jupyter Notebook:
from sympy import symbols
from galgebra.ga import Ga
from galgebra.printer import Format
Format(Fmode = False, Dmode = True)
st4coords = (t,x,y,z) = symbols('t x y z', real=True)
st4 = Ga('e',
g=[1,-1,-1,-1],
coords=st4coords)
M = st4.mv('M','mv',f = True)
M.grade(3).Fmt(3,r'\langle \mathbf{M} \rangle _3')
You will see:
You may also check out more examples here.
For detailed documentation, please visit https://galgebra.readthedocs.io/ .
NOTE: If you are coming from sympy.galgebra or brombo/galgebra, please check out section Migration Guide below.