Comment #3 on issue 2738 by [email protected]: Make a distinction between operations and their result
http://code.google.com/p/sympy/issues/detail?id=2738
So you are differentiating between an unapplied OpMul and an OpMul that's been created, right? Surely you want to be able to do OpMul(3, 2) + OpMul(4, 2) (I guess this should create an OpAdd). And anyway, I think you want to be able to use them like you would any other expression.
By the way, why create OpSub and OpDiv instead of just using the same approach we use with normal arithmetic, e.g., x - y == x + -1*y?
And to me, some things should be exactly the same for an unevaluated Mul and a regular one. We won't be able to compute some things without evaluating it, at least partially (like as_coeff_*), but for other things it does not matter (e.g., splitting apart the args of a Mul in solve() and solving them separately).
But I think I'm just misunderstanding exactly what the OpMul object is, other than just a simple wrapper that calls Mul with .result().
-- 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.
