Python Packages for Complex Numbers and Matrix Math

Bruce Wolk bawolk at ucdavis.edu
Sun Aug 26 14:45:12 EDT 2001


>>> x = 1 + 3j
>>> x.real
1.0
>>> x.imag
3.0
>>>


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
>




More information about the Python-list mailing list