Calculate norm of quaternion
The quaternion has the form of
The quaternion norm has the form of
|Quaternion or vector||Contains quaternions in the form of [q0, r0, ..., q1, r1, ... , q2, r2, ... , q3, r3, ...].|
|Quaternion norm or vector||Contains quaternion norm or vector of quaternion norms in the form of [norm(q), norm(r), ...].|
Stevens, Brian L., Frank L. Lewis, Aircraft Control and Simulation, Wiley–Interscience, 2nd Edition.