Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3814 by [email protected]: Relations on MatrixElements are
broken.
http://code.google.com/p/sympy/issues/detail?id=3814
In sympy 0.7.2 this works:
from sympy import MatrixSymbol
m = MatrixSymbol('m', 1, 1)
print m[0,0] > 0
Output:
m_00 > 0
In current git master (e0241473):
Traceback (most recent call last):
File "test.py", line 3, in <module>
print m[0,0] > 0
File "/home/martin/repos/sympy/sympy/core/decorators.py", line 74, in
__sympifyit_wrapper
return func(a, b)
File "/home/martin/repos/sympy/sympy/core/expr.py", line 270, in __gt__
return C.StrictGreaterThan(self, other)
File "/home/martin/repos/sympy/sympy/core/relational.py", line 163, in
__new__
know = diff.equals(0, failing_expression=True)
File "/home/martin/repos/sympy/sympy/core/expr.py", line 581, in equals
diff = factor_terms((self - other).simplify(), radical=True)
File "/home/martin/repos/sympy/sympy/core/expr.py", line 2848, in simplify
return simplify(self, ratio, measure)
File "/home/martin/repos/sympy/sympy/simplify/simplify.py", line 3662, in
simplify
expr2 = shorter(together(expr, deep=True), together(expr1, deep=True))
File "/home/martin/repos/sympy/sympy/simplify/simplify.py", line 3656, in
shorter
return min(choices, key=measure)
File "/home/martin/repos/sympy/sympy/core/function.py", line 2111, in
count_ops
if a.is_Rational:
AttributeError: 'str' object has no attribute 'is_Rational'
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.