[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.17 Quoternions and octonions

Procedures for quoternions and octonions.

You can input a quoternion a+bi+cj+dk as a+bi+cj+dk.

You can also input an octonion a+bi+cj+dk+el+fil+gjl+hkl as a+bi+cj+dk+eo+fio+gjo+hko. (use o as imaginary unit instead of l.)

Function: + n …

[R5RS+] adds all given arguments. This procedure extends for quoternions and octonions.

Function: - n …

[R5RS+] subtracts given arguments from the first argument. This procedure extends for quoternions and octonions.

Function: * n …

[R5RS+] multiplies all given arguments. This procedure extends for quoternions and octonions.

Function: / n …

[R5RS+] divides given arguments from the first argument. This procedure extends for quoternions and octonions.

Function: quaternion? obj

returns #t if the object is a quoternion (including real and complex number).

Function: octonion? obj

returns #t if the object is an octonion (including real number, complex number and quoternion).


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.