Quaternion Function Reference

vector_product

Vector or cross product of two quaternions, or two or three octonions

Syntax

Y = vector_product(A, B)

Description

vector_product(A, B) returns the vector (or cross) product of the two arguments, elementwise on the two arrays, which must be pure.

The octonion version of the function accepts two or three parameters. The three-fold vector product is defined for full octonions. Its result is invariant to cyclic permutation of the parameters, but changes sign if two are interchanged.

Examples

The vector product of qi with qj gives qk:
>> vector_product(qi, qj) == qk

ans = 1

References

  1. Peter Zvengrowski, 'A 3-fold vector product in R8', Commentarii Mathematici Helvetici, 40, 149-152, 1965-1966. DOI: 10.5169/seals-30632

See Also

QTFM function: cross
MATLAB® function: cross

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

License terms.