Earlier quoted context omitted.
1^x = 1 for any complex x. So that library can be very simple and fast!
Wrong. 1^x is multi-valued, and like with all other multi-valued complex functions it is possible to select a branch of the function that is a proper function. Defined correctly, the value of 1^x for any rational x is the corresponding smallest root of unity, and for irrational arguments it is defined by continuity. Therefore 1^x rotates on the unit circle for increasing x. The standard complex exponential and comple…
Example values of e^z and 1^z:
e^2 ~= 7.389
1^2 = 1
e^(i\pi) =-1
1^(i\pi) = 1
e^-7 ~= 0.000912
1^(-7) = 1
e^(1+i) ~= 1.46869394 + 2.28735529 i
1^(1+i) = 1