Next: Trigonometry, Previous: Utility Functions, Up: Arithmetic
The following functions are available for working with complex
numbers. Each expects a single argument. Given a matrix they work on
an element by element basis. In the descriptions of the following
functions,
z is the complex number x + iy, where i is
defined as sqrt (-1)
.
Compute the magnitude of z, defined as |z| =
sqrt (x^2 + y^2)
.For example,
abs (3 + 4i) => 5