# Is there a way to show how negative exponents affect fractions?

Mason Musser shared this question 1 week ago
Answered

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!

## Comments (3)

2

explication de base

If(ea < 0, "\frac{1}{a^" + (-ea) + "}", "a^" + ea)

2

comme il pleut, j'ai essayé de répondre complètement à la demande

https://www.geogebra.org/m/mbbnktqg

1

Thank you so much! This is exactly what I was looking for!

Leave a Comment
• GeoGebra
• Help
• Partners
• Contact us
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693
© 2019 International GeoGebra Institute