C++ code to perform the Lorentz boosts and rotations of special relativity using complex quaternions The interface is a complex quaternion console-based calculator with operations + - * / and functions for Lorentz boosts and rotations.
THEORY
Complex quaternions have form
q = A + B * I + C * J + D * K
A, B, C, D complex
I * I = -1
J * J = -1
K * K = -1
I * J = K
J * I = -K
J * K = I
K * J = -I
K * I = J
I * K = -J
Transpose T takes I into -I, J into -J, K into -K...