Is there a way to show how negative exponents affect fractions?
I want to create an exponential expression that appears in text form that is a fraction like "a^(w) b^(x) / c^(y)d^(z)" where w, x, y, and z can change with four different sliders ranging from -5 to 5. I want to create another text that changes the fraction when any or all of the four bases of a, b, c, and d are raised to a negative exponent.
So for example if the first text is "a^2b^3 / c^1d^4" the other text will just appear as it is now. But if it changes to something like "a^-2b^1 / c^-4d^5" the other text will appear as "b^1c^4 / a^2d^5". But, if it is something like "a^-4b^-2 / c^1d^2" the other text will appear as "1 / a^4b^2c^1d^2". Similarly, if it is "a^3b^1 / c^-2d^-3" the second text will appear as "a^3b^1c^2d^3 / 1".
I hope this makes sense. Any help would be much appreciated!