On Fri, Sep 10, 2010 at 10:19 PM, Bill Hart <[email protected]> wrote: > What isn't clear is how expressions like > > 2*x + 3*y + 4*z > > get handled without creating intermediate classes. Do the Add and > Mult classes combine subexpressions together within the __new__ > method?
Such expressions do create intermediate classes, unless you do something like Add(2*x, 3*y, 4*z) then it doesn't create an intermediate class. If you know any better way to handle such things, let us know. Ondrej -- 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.
