7.4.3 Writing a complex number
z
in rectangular form
The
evalc
command will ensure that a complex number is in rectangular form.
evalc
takes
z
, a complex number.
evalc(
z
)
returns
z
written as
re(
z
)+i*im(
z
)
.
Example
evalc
(
sqrt
(2)*
exp
(
i
*
pi
/4))
1+
i