>
>            if isinstance(base,Pow):
>                args = base.args
>                new_bases += args[1]*[args[0]]
>

watch out for non-Integer args[1] like I did in the example I sent.

-- 
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.

Reply via email to