* * Try k=Add(x,x,evaluate=False) print k # prints x+x print -k # prints -2*x
As in __neg__ function it do Add(*args) again. It seems somewhere sympy is limited in evaluate=False part. I think we should have one property IsEvaluated in expr class. So all the functions (like __neg__) can use that while forming the expression again . -- 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.
