# e^(iθ) pour quelques angles : toujours un point du cercle de rayon 1
import cmath

for name, theta in [("0", 0), ("π/4", cmath.pi / 4), ("π/2", cmath.pi / 2), ("π", cmath.pi)]:
    u = cmath.exp(1j * theta)
    print(f"θ = {name:<4} e^(iθ) = {u:.3f}   module = {abs(u):.3f}")
