Solution (source code)

= Solution

Squaring the <modulus> and doubling the <complex argument> gives
$$
(2e^{i\pi/4})^2=4e^{i\pi/2}=\boxed{0+4i}.
$$
This uses <Euler's formula> $e^{i\theta}=\cos\theta+i\sin\theta$.