I am trying to understand how to use Quaternions within sagemath to replicate Lorentz transforms.
In other words, Lorentz transforms are rotations within a 4D spacetime and I need to understand how they can be expressed in terms of quaternions.
I looked up examples of quaternions usage and they seem cryptic...
Since I suspect this issue has been solved a long time ago, I am asking for help finding the appropriate code.
Cheers,
Marco