Magnitude of a clifford object
magnitude.Rd
Following Perwass, the magnitude of a multivector is defined as
$$\left|\left|A\right|\right| = \sqrt{A\ast A}$$
Where \(A\ast A\) denotes the Euclidean scalar product
eucprod()
. Recall that the Euclidean scalar product is never
negative (the function body is sqrt(abs(eucprod(z)))
; the
abs()
is needed to avoid numerical roundoff errors in
eucprod()
giving a negative value).
Note
If you want the square,
\(\left|\left|A\right|\right|^2\) and not
\(\left|\left|A\right|\right|\), it is faster and more accurate
to use eucprod(A)
, because this avoids a needless square root.
There is a nice example of scalar product at rcliff.Rd
.