Python Packages for Complex Numbers and Matrix Math
Ignacio Vazquez-Abrams
ignacio at openservices.net
Sun Aug 26 14:40:42 EDT 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.
> Maan
Try x.real and x.imag.
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list