I want to prevent Mathematica from using the identity $e^{2i \pi} = 1$ because at a later step I will evaluating something like $\left(e^{2i \pi}\right)^\alpha$ for some non integer $\alpha$. I wish for it to return $e^{2i\pi\alpha}$ instead of $1$. How do I do that?
In the actual computation, such expression appears multiple times in a bigger expression and I would appreciate a solution that I can apply universally during the evaluation of a cell or file instead having to do it multiple times within an expression.
MWE:
((f[z]/f[zb])^(\[Alpha]/2) + (f[zb]/f[z])^(\[Alpha]/2)) /. {f[z] -> E^(2 \[Pi] I) f[zb]}
returns 2 while I would like it to return $2 \cos\left(\pi \alpha\right)$.
Inactivate[expr, Power]at an appropriate juncture, perhaps usingHoldto prevent evaluation. – Michael E2 Jul 03 '19 at 03:34Block[{Pi = pi}, (E^(2 I Pi ))^w] /. Power[Power[E, a_], b_] :> Power[E, a b] /. pi -> Pi? – kglr Jul 03 '19 at 03:56