First time here? Check out the FAQ!
answered 2024-08-29 23:30:58 +0100
You may use rectform:
rectform
sage: ((-1)^(1/4)).rectform() (1/2*I + 1/2)*sqrt(2) sage: exp(pi*I/4).rectform() (1/2*I + 1/2)*sqrt(2)