Cómo separar partes reales e imaginarias de un número complejo en Python
let x = 6 + 9j be a complex number
to get the real part use the code :
x.real
output==> 6.0
to get the imaginary part use the code:
x.imag
output==> 9.0
let x = 6 + 9j be a complex number
to get the real part use the code :
x.real
output==> 6.0
to get the imaginary part use the code:
x.imag
output==> 9.0