Hello,

from the 'diff and subs' thread I noticed the following problem with
the division operation:

% ipython
[...]

In [1]: from sympy import *

In [2]: var('x y z')
Out[2]: (x, y, z)

In [3]: v=Matrix(1,2,[x,y])

In [4]: v
Out[4]: [x, y]

In [5]: v/z
Out[5]: [x/z, y/z]

Thats ok, but

In [6]: from __future__ import division

In [7]: v/z
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/home/friedrich/<ipython console> in <module>()

<type 'exceptions.TypeError'>: unsupported operand type(s) for /: 'Matrix' and 
'Symbol'

In [8]: v*(1/z)
Out[8]: [x/z, y/z]

this is not so ideal.


By,  Friedrich

--~--~---------~--~----~------------~-------~--~----~
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