Predefined Geometric AlgebrasΒΆ
clifford provides several predefined algebras,
g2: 2D Euclideang3: 3D Euclideang4: 4D Euclideang2c: Conformal space for G2 (G3,1)g3c: Conformal space for G3 (G4,1)
You can use them like so
[1]:
from clifford import g2
g2.e1*g2.e2
[1]:
(1^e12)
The layout and blades are also available,
[2]:
g2.layout
[2]:
Layout([1, 1],
[(), (1,), (2,), (1, 2)],
names=['', 'e1', 'e2', 'e12'],
firstIdx=1)
[3]:
g2.blades
[3]:
{'': 1, 'e1': (1^e1), 'e2': (1^e2), 'e12': (1^e12)}
Or, specifically import the blades you need for your app
[4]:
from clifford.g2 import e1,e2,e12
e1*e2==e12
[4]:
True
[ ]: