Basic Examples (3)
Get the quaternion 1+2ⅈ+3ⅉ+4𝕜:
Add two quaternions:
Use NonCommutativeMultiply (**) to multiply quaternions:
This multiplication is noncommutative:
Properties and Relations (7)
In the conjugate of a quaternion, all the signs of the nonreal components are reversed:
The sign of a quaternion is defined in the same way as the sign of a complex number. It is the “direction” of the quaternion:
Get the standard Euclidean length:
The exponential of a quaternion can be quite complicated:
Just as with complex numbers, it is important to beware of branch cuts:
A four‐dimensional analog of de Moivre’s theorem is used for calculating powers of quaternions:
Round for quaternions returns a Quaternion in which either all components are integers or all components are odd multiples of 1/2:
A quaternion is even if its norm is even:
Just as with complex numbers, the quaternion Mod works:
You can specify a quaternion as the modulus: