Hi!

Quick question. I am struggling with what I think is a pretty trivial
problem. Say I have a 2x2 matrix of numbers of the form x+I*y where x
and y are doubles. Is there anyway to convert these numbers to the
form x+1j*y (I want to use numpy to calculate some eigenvalues)? Here
is an example:

In [1]: from sympy import I

In [2]: e = 1+I

In [3]: e.subs(I,1j)
Out[3]: 1 + I

In [4]: e.subs(I,numpy.complex(0,1))
Out[4]: 1 + I

Nothing I am trying seems to work. Is there something I am missing?

Thanks!

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to