Divide quaternion by another quaternion
Aerospace Blockset / Utilities / Math Operations
The Quaternion Division block divides a given quaternion by another. Aerospace Blockset™ uses quaternions that are defined using the scalar-first convention. The output is the resulting quaternion from the division or vector of resulting quaternions from division. For the quaternion forms used, see Algorithms.
q— Dividend quaternion
Dividend quaternions in the form of [q0, p0, ..., q1, p1, ... , q2, p2, ... , q3, p3, ...], specified as a quaternion or vector of quaternions.
r— Divisor quaternion
Divisor quaternions in the form of [s0, r0, ..., s1, r1, ... , s2, r2, ... , s3, r3, ...], specified as a quaternion or vector of quaternions.
q/r— Output quaternion
Output quaternion or vector of resulting quaternions from division.
The quaternions have the form of
The resulting quaternion from the division has the form of
 Stevens, Brian L., Frank L. Lewis. Aircraft Control and Simulation, Second Edition. Hoboken, NJ: Wiley–Interscience.