Example 1.
Use AlgebraLibraryData to retrieve the structure equations for the quaternions. Call the algebra .
Initialize the algebra of quaternions.
Define a quaternion
Calculate the norm of
Calculate the inverse of and check the result.
Example 2.
Use AlgebraData to retrieve the structure equations for the octonions. Call the algebra .
Initialize the algebra of octonions. We shall use the labelling for the basis vectors with being the identity.
Define an octonion
Calculate the norm of
Calculate the inverse of and check the result.