Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 437 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 437 Bytes

Octonion

Intro

import Octonion

// z = 1*e0 + 2*e1 + 3*e2 + 4*e3 + 5*e4 + 6*e5 + 7*e6 + 8*e7  
let y = Octonion([1, 2, 3, 4, 5, 6, 7, 8])
let z = Octonion([1, 2, 3, 4, 5, 6, 7, 8])

Octonion.CayleyDicksonConstruction(y, z)

Octonion.CayleyDicksonConstruction works with Quaternion, Complex, and RealType from Numerics, as well... albeit in a naive way for now.

For reference: https://en.wikipedia.org/wiki/Octonion