Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2475 by [email protected]: primitive should use Add, not
_new_rawargs
http://code.google.com/p/sympy/issues/detail?id=2475
This assertion fails because _new_rawargs is being used in primitive.
>>> assert (3*x + 6*y).primitive() == (3, x + 2*y)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
>>> (3*x + 6*y).primitive()
(3, x + 2*y)
>>> _[1].args
(x, 2*y)
>>> (x+2*y).args
(2*y, x)
When the ordering of terms might change because of changes to terms/factors
then _new_rawargs should not be used. It should only be used when
recombining original terms in the same order that they appeared in the args
of the expression.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.