Python Packages for Complex Numbers and Matrix Math
ignacio at openservices.net
Sun Aug 26 20:40:42 CEST 2001
On Sun, 26 Aug 2001, Maan Hamze wrote:
> if x is a complex number = a + bj
> is there any built in finction that can return the real and imaginary values
> of x?
> Something like:
> r = real(x) = a and
> s=img(x) = b
> I can not find something like that.
Try x.real and x.imag.
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list