for example:

```
>>> e
x**2 + x*y + 3*x + y*z + z
>>> for s in e.free_symbols:
...  i,d=e.as_independent(s, as_Add=True)
...  c=factor(i)+factor(d)
...  print c.count_ops(),c
...
6 x*(x + y + 3) + z*(y + 1)
6 x*(x + y + 3) + z*(y + 1)
7 x**2 + 3*x + y*(x + z) + z
```

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/358114fc-5e11-41d0-8303-f6aaa82d63be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to