I think there should be an option to do it automatically. Something like evalf(chop=True, chop_prec=1e-15).
Aaron Meurer On Sun, Feb 19, 2012 at 11:38 PM, Chris Smith <[email protected]> wrote: > e.subs([(n, 0) for n in e.atoms(Float) if n <= 1e-15]) (or else rewrite > evalf so that the chop keyword is numerical, representing the threshold for > chopping). > > -- > 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. -- 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.
