I'm using sympy to do a nonlinear solve over a set of power laws, and I end up with a bunch of solutions like
20394*sqrt(6)*x**(2/3)*y**(1/4)
I want to collapse the numerical coefficients while leaving the rational nature of the exponents exposed, i.e. I want my code to output
49954.8938143201*x**(2/3)*y**(1/4)
However, when I use evalf(), I get
49954.8938143201*x**0.666666666666667*y**0.25
Is there any way to ask sympy to not evaluate exponents, or even just to extract the non-symbolic part of the answer so I can create my own print function that formats output in the way I want?