quaternioni
Quaternions are a number system that extends complex numbers. They form a four-dimensional associative algebra over the real numbers, invented by William Rowan Hamilton in 1843. A quaternion is commonly written q = a + bi + cj + dk, where a, b, c, d are real numbers and i, j, k are imaginary units satisfying i^2 = j^2 = k^2 = ijk = -1. The multiplication is noncommutative, with ij = k, jk = i, ki = j and ji = -k, kj = -i, ik = -j.
Conjugation and norm are basic operations. The conjugate of q is q* = a - bi - cj - dk,
Geometrically, unit quaternions encode 3D rotations. A vector v = (x, y, z) is represented as a pure
Quaternions have widespread applications in computer graphics, robotics, aerospace, and physics for orientation, rotation, and interpolation