Quaternion Function Reference

axis

Axis of quaternion or octonion.

Syntax

Y = axis(X)

Description

If Q = a + μ .* b where a and b are real/complex, and μ is a unit pure quaternion or octonion, then axis(Q) = μ.

The polar form of a quaternion or octonion is q = A exp(μθ) where A is a real or complex modulus, μ is a unit pure quaternion or octonion, and θ is an angle. It is μ that is computed by this function.

Examples

>> axis(qi + qj + qk)
 
ans = 0.5774 * I + 0.5774 * J + 0.5774 * K

>> axis(1 + qi + qj + qk)
 
ans = 0.5774 * I + 0.5774 * J + 0.5774 * K

See Also

QTFM function: angle

(c) 2008-2016 Stephen J. Sangwine and Nicolas Le Bihan

License terms.