I am trying to combine an expression containing similar exponents that 
are multiplied to each other ...


In [20]: wn
Out[20]: (1/m)**(1/2)*(k1 + k2 + k3)**(1/2)

In [21]: together(wn)
Out[21]: (1/m)**(1/2)*(k1 + k2 + k3)**(1/2)

but I would like something like

In [21]: together(wn)
Out[21]: ((k1+k2+k3)/m)**(1/2)

I can't even seem to convince sympy to do what I want in a brute force way

In [23]: sqrt(wn.args[0].args[0]*wn.args[1].args[0])
Out[23]: (1/m)**(1/2)*(k1 + k2 + k3)**(1/2)

Any advice getting this done. 

Thanks,
Bill


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