onion (version 1.5-0)

onion-package: tools:::Rd_package_title("onion")

Description

tools:::Rd_package_description("onion")

Arguments

Author

tools:::Rd_package_author("onion")

Maintainer: tools:::Rd_package_maintainer("onion")

Details

tools:::Rd_package_DESCRIPTION("onion") tools:::Rd_package_indices("onion")

There are precisely four normed division algebras over the reals: the reals themselves, the complex numbers, the quaternions, and the octonions. The R system is well equipped to deal with the first two: the onion package provides some functionality for the third and fourth.

References

R. K. S. Hankin 2006. “Normed division algebras in R: introducing the onion package”. R News, Volume 6, number 2

Examples

Run this code
rquat(10)   # random quaternions

Ok + (Oi + Ojl)/(Oj-Oil)  # basic octonions

x <- roct(10)
y <- roct(10)
z <- roct(10)

x*(y*z) - (x*y)*z   # nonassociative!


Run the code above in your browser using DataLab