Previous Up Next

2.11.4  Write a complex as re(z)+i*im(z) : evalc

evalc takes as argument a complex number z.
evalc returns of this complex number, written as re(z)+i*im(z).
Input :

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

Output :

1+i

Previous Up Next