onion (version 1.5-0)

biggest: Returns the biggest type of a set of onions

Description

Returns the biggest type of a set of onions; useful for “promoting” a set of onions to the most general type.

Usage

biggest(...)

Value

Character string representing the type

Arguments

...

Onionic vectors

Author

Robin K. S. Hankin

Details

If any argument passed to biggest() is an octonion, then return the string “octonion”. Failing that, if any argument is a quaternion, return the string “quaternion”, and failing that, return “scalar”.

Examples

Run this code
biggest(O1,rquat(100),1:4)

Run the code above in your browser using DataLab