from galgebra.printer import Format
from galgebra.ga import Ga
from sympy import symbols
Format()
coords = (x,y,z) = symbols('x,y,z',real=True)
(o3d,ex,ey,ez) = Ga.build('e_x e_y e_z',g=[1,1,1],coords=coords)
v = o3d.mv('v','vector')
v
v.Fmt(3,'v')
V = o3d.mv('V','vector',f=True)
V.Fmt()
V
gradV = o3d.grad*V
gradV
gradV.Fmt(3,r'\nabla V')
gradV.Fmt(2,r'\nabla V')
lap = o3d.grad|o3d.grad
lap
lap.Fmt(1,'\\nabla^{2}')
A = o3d.lt('A')
A
A.Fmt(1,'A')
A.Fmt(2,'A')