Description Usage Arguments Value Note Author(s) See Also Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x,z |
Object of class onion or glub |
value |
replacement value |
All functions documented here return a numeric vector or matrix of the
same dimensions as their argument, apart from functions Im()
and Conj()
, which return an object of the same class as its
argument.
If x
is a numeric vector and y
an onion, one might expect
typing x[1] <- y
to result in x
being a onion. This is
impossible, according to John Chambers.
Extract and set methods for components such as i,j,k
are
documented at Extract.Rd
Robin K. S. Hankin
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.