Quaternion Function Reference

oi/oj/ok/ol/om/on/oo

Octonion operators i, j, k, l, m, n, o

Syntax

oi/oj/ok/ol/om/on/oo

Description

These seven functions return constant octonions with values corresponding to the seven octonion operators i, j, k, l, m, n and o.

The symbol i is a builtin MATLAB® operator for the complex root of -1, and therefore it cannot be used for the quaternion or octonion i. This is why the notation oi is used.

Octonion i and quaternion i are distinct entities (the octonion class has been added to the toolbox as a distinct type).

Examples

>> oi + ol + on
 
ans = 1 * I + 0 * J + 0 * K + 1 * L + 0 * M + 1 * N + 0 * O

>> 2 * ol + 3 * om
 
ans = 0 * I + 0 * J + 0 * K + 2 * L + 3 * M + 0 * N + 0 * O

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

License terms.