Magnitude R←|Y
Y
may be any numeric array. R
is numeric composed of the absolute (unsigned) values of Y
.
Note that the magnitude of a complex number (where and are real numbers, and is the imaginary unit) is defined to be:
Examples
|2 ¯3.4 0 ¯2.7
2 3.4 0 2.7
|3j4
5
⎕IO
is an implicit argument of magnitude.