@staticmethod

>     def update_dict(expr,D,f_update):
>
>         for term in expr.args:
>             base = term.args_cnc()[1]
>             l_base = len(base)
>

Just a suggestion -- since you don't care about the number of bases, how
about


if base:
  base = Mul._from_args(base)  # much faster than recomputing with Mul
  if base not in D:
    D[base] = f_update(base)

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to