Previous Up Next

6.10.3  Writing a complex number z in rectangular form: evalc

The evalc command will ensure that a complex number is in rectangular form.


Example.
Input:

evalc(sqrt(2)*exp(i*pi/4))

Output:

1+i

Previous Up Next