There are a few tools required to solve problems in special relativity using quaternions to characterize events in spacetime. The most basic are gamma and a round value for c. Define a function for quaternions using its matrix representation.
Redshifts have a plus instead of the minus.
A clock moves along the x axis at a speed of 0.6c and reads zero as it passes the origin. A clock measures an interval between two events. The first event occurs at the origin. Calculate the interval by squaring the difference quaternion and then taking the square root of the first term. The moving clock reads 8 x seconds.