First time here? Check out the FAQ!
answered 2024-07-10 08:36:26 +0100
Running :
var("a, b", domain="real") z=1/(a+I*b) (z.real()+I*z.imag()).factor()
prints :
(a - I*b)/(a^2 + b^2)
See this Sagecell example.
HTH,