Quaternion Function Reference

power

.^ Array power
(Quaternion overloading of standard MATLAB® function)

Syntax

Y = X .^ Y

Description

X .^ Y raises the quaternion X to the quaternion power Y, elementwise. It can also handle cases where one or both parameters is a scalar (a single quaternion).

The general case is handled using logarithms, but certain special cases of the right parameter are computed using more direct formulae for greater speed and accuracy.

Examples

The square of a unit pure quaternion is -1, as can easily be verified:
>> randv .^ 2
 
ans = -1 + 0 * I + 0 * J + 0 * K

See Also

QTFM function: mpower
MATLAB® function: power

© 2008-2013 Stephen J. Sangwine and Nicolas Le Bihan

License terms.