GROUP THEORY TUTORIAL
Working with Quaternions
Although Mathematica provides a package for working with quaternions the Group Theory Package includes some basic functions for working with quaternions represented as a list.
In[1]:= |
We obtain the quaternion representation of the symmetry element C3z (three-fold rotation about the z-axis) by using GTGetQuaternion.
GTQuaternionQ[q] | gives True if q is a quaternion. |
a⋄b | multiplication of two quaternions a and b. |
GTQInverse[quaternion] | gives the inverse quaternion of a quaternion. |
GTQConjugate[quaternion] | gives the conjugate quaternion of a quaternion. |
Quaternions form a division ring hence for every quaternion there exists a multiplicative inverse element. Use GTQInverse...