Quaternion Function Reference

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

Octonion operators i, j, k, l, m, n, o and octonion unity

Syntax

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

Description

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

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

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

License terms.