I feel like I've seen code for this on the mailing list or IRC but
after some searching wasn't able to find it.

Is it possible to prevent something like (x*y)**2 from being expanded
to x**2*y**2?

I tried an expand=False option to Mul and Pow, as in:
Mul(x*y, x*y, expand=False)
Pow(x*y, 2, expand=False)

but this didn't do it.

Is there a way?

Thanks,
~Luke
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to