Is there any way to get the Numerator and the Denominator of an expression split in the same way that Mathematica graphically represents it.
Say I have an expression:
(a^(p1 + p2 - p3) b^(p1 - p2 + p3))/(c d)
When plugged into mathematica it gets represented with the $c$ and $d$ in the denominator but if I were to try to extract the numerator and denominator with respectively Numerator and Denominator I would not get the same split. I understand that a different (probably more sensible) choice of representation is made in Numerator and Denominator. However, is it possible to (automatically and reliably) take the denominator and numerator parts as split in the graphical representation? Mathematica must be able to determine this split since it has to decide how to graphically represent the output.