Python Packages for Complex Numbers and Matrix Math

Maan Hamze mmhamze at pleiades.net
Sun Aug 26 14:10:32 EDT 2001


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

"David Fuess" <fuess1 at home.com> wrote in message
news:f07iot0er3flsm4nbh0gegvld4gssfuti0 at 4ax.com...
> On Sat, 25 Aug 2001 18:35:55 GMT, "Maan Hamze" <mmhamze at pleiades.net>
> wrote:
>
> >Quite a while ago, there used to be packages on Matrix Math and Complex
> >number Math.
> >What is the status on these packages?  I can not find either.
> >For those who use Scientific packages:  which ones are recommended for
> >Matrices and Complex numbers?
> >Maan
> >
>
> For Matrix math use NumPy (look on source forge), for complex use
> cmath (part of the standard distribution).
>
> Dave





More information about the Python-list mailing list