Potential error when using odd exponent for "exponential exponents", not sure

I’m back with more math!

So, to test what I mean, go to the Desmos graphing calculator and graph the formula 2^x^^2 (paste exactly into Desmos). What this does is square (or whatever exponent to ^^) x. After that, it does the exponential, so 2^x. But since x is a variable that changes as you move across the x-axis, your first squaring will change, meaning x=2, y=2^4, or x=4, y=2^16.

You should notice that it’s what is called a “parabola”. This means that the line in quarter 1 of the graph is reflected across the y-axis into quarter 2. However, if you were to use any odd number to the ^^, it will no longer be a parabola, instead, it will look like a partial, cut off by a plateau, then continued as an exponential. An example would be 2^x^^3, x=2^3, y=2^8.

Now, my script: (won’t let me post for some reason)

gets the parabola part correct, but I can’t tell what is wrong with the **“**plateau” part. I went through a couple trials and errors, but I eventual got to using what you see above, which first exponents the x position before exponent-ing the coefficient, “m”. Previously, I had it exponent the “m” to the x position, then exponent ^^, which is reverse. That is actually what fixed the parabola problem.

If you want to play with the script, you can find it here: Graphing by johnce | Snap! Build Your Own Blocks (edit code, go to “Testing” sprite)

Now, I’m not completely sure there is a problem currently, as I simply cannot see the plateau, though that does not mean it isn’t there.

I checked by using a “starting y” variable that was the y at start and an ending y variable end to see if it went down by one like its meant to, and it does, so there isn’t a problem it seems.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.