When working with complex numbers in polar form, I've experienced a strange behavior. For example, doing
from sympy import *
simplify(Abs(exp(I)))
I would expect the result 1 because the absolute value of a complex exponential should always be one if the exponent is only imaginary. However, sympy gives as answer
Abs(exp(I))
Doing the alternative
phi=symbols('phi', real=True)
y=exp(I*phi)
sqrt(y*conj(y))
gives the expected result but is less clear than abs in my opinion. Did I miss some constraint that prevents sympy from performing this simplification when just using abs?