So, going back to what we discussed the first time we met in Los Alamos, how would you reimplement something like the oo logic so that it lives entirely in the Infinity class, not in Add.flatten (say for simplicity, oo + 3 should go to oo, but oo + 3*I should remain as oo + 3*I)?
Aaron Meurer On Wed, Jul 3, 2013 at 1:28 PM, Ondřej Čertík <[email protected]> wrote: > On Wed, Jul 3, 2013 at 11:27 AM, Aaron Meurer <[email protected]> wrote: >> No, Add(x, y, z, t) is not just used for fast construction. Any >> algorithm that recurses through an expression tree and rebuilds things >> will rebuild an Add in that way, using expr.func(*expr.args). > > Which will work with both Add and AddHold, whatever class happens to > be used. I think this is fine. > > Ondrej > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "sympy" 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. For more options, visit https://groups.google.com/groups/opt_out.
