Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Calculations on conformal geometric algebra
Contributed by: José Luis Aragón Vera
Alejandra Ortiz Duran
In this paclet conformal geometric algebra is implemented in the system using a rule-based programming paradigm. As a result, a tool is offered to perform calculations in this algebra, and to exemplify its use, the manipulation of various geometric objects is presented along.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Jlaragonvera/CGAlgebra"]
To load the code after installation, evaluate this code:
Needs["Jlaragonvera`CGAlgebra`"]
If we consider the two vectors:
In[1]:= | ![]() |
In[2]:= | ![]() |
The inner product will be:
In[3]:= | ![]() |
Out[3]= | ![]() |
The outer product will be:
In[4]:= | ![]() |
Out[4]= | ![]() |
The geometric product will be:
In[5]:= | ![]() |
Out[5]= | ![]() |
The direct representation of the sphere Σ, which passes through four points p1, p2, p3 and p4 s p1∧p2∧p3∧p4 is:
In[6]:= | ![]() |
In[7]:= | ![]() |
This equation can be written in terms of a point p that lies on the sphere as p∧Σ=0:
In[8]:= | ![]() |
Out[9]= | ![]() |
In[10]:= | ![]() |
If we use the points (x1,y1,z1)=(1,-1,3), (x2,y2,z2)=(4,1,-2), (x3,y3,z3)=(-1,-1,1) and (x4,y4,z4)=(1,1,1) we can get:
In[11]:= | ![]() |
Out[11]= | ![]() |
In[12]:= | ![]() |
Out[12]= | ![]() |
In[13]:= | ![]() |
Out[13]= | ![]() |
If we consider two spheres:
In[14]:= | ![]() |
With center Y=(−4,0,0) and Z=(−3,−1.1,1.3) and radius 𝑟1=2.5 y 𝑟2=1.3:
In[15]:= | ![]() |
The intersection will be the circle:
In[16]:= | ![]() |
With radius:
And center:
In[17]:= | ![]() |
Out[19]= | ![]() |
In[20]:= | ![]() |
Out[20]= | ![]() |
In[21]:= | ![]() |
Out[21]= | ![]() |
Wolfram Language Version 14.1