Functionality in the Complex group.
The norm Norm(O)
of onion \(O\) is the product of
\(O\) with its conjugate: \(|O|=OO^*\) but a more efficient
numerical method is used (see dotprod()
).
The Mod Mod(O)
of onion \(O\) is the square root of its
norm.
The sign of onion \(O\) is the onion with the same direction
as \(O\) but with unit Norm: sign(O)=O/Mod(O)
.
Function Im()
sets the real component of its argument to zero
and returns that; Conj()
flips the sign of its argument's
non-real components. Function Re()
returns the real component
(first row) of its argument as a numeric vector. If x
is an
onion, then x == Re(x) + Im(x)
.