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 Conj()
flips the sign of its argument's non-real
components.