>
|
|
Example 1.
Use AlgebraLibraryData to retrieve the structure equations for the quaternions. Call the algebra .
>
|
|
| (2.1) |
Initialize the algebra of quaternions.
>
|
|
Define a quaternion
| (2.3) |
Calculate the norm of
Calculate the inverse of and check the result.
Qalg >
|
|
| (2.5) |
Example 2.
Use AlgebraData to retrieve the structure equations for the octonions. Call the algebra .
>
|
|
| (2.7) |
Initialize the algebra of octonions. We shall use the labelling for the basis vectors with being the identity.
Define an octonion
Qalg >
|
|
| (2.9) |
Calculate the norm of
Calculate the inverse of and check the result.
Qalg >
|
|
| (2.11) |