Because you have to choose a branch of log to define ## z^a ## when z is complex with non-zero imaginary part and a is not a rational number. Take, e.g.,
(eiπ/4))iπ/4 .
Let z =eiπ/4 . Then
(eiπ/4))iπ/4=ziπ/4:=ezlog(iπ/4) . Using the
##Logz## branch, i.e., the main branch (because the argument of iπ/4 is precisely π/4 in the main branch Logz), we have
Log(iπ/4)=ln(1)+iπ/4=iπ/4 and then it works out:
(eiπ/4)iπ/4=(cos(π/4)+isin(π/4))iπ/4= ##( \sqrt 2/2+isin \sqrt 2/2)^{i\pi/4}= ( \sqrt 2/2+isin \sqrt 2/2)^{ln(1)+i\pi/4} =e^{-\pi^2/16}##
. But if you want to use ##2 \pi ## as argument, then you need to work in a branch where ## 2\pi ## makes sense.