does anyone know if there is a block like (x)^(y) in scratch? if not, how would you do it in BYOB without having an infinite amount of "if" statements?
Offline
x^y = 10^ (y * log x)
That should work.
Edit: In response to your question, there isn't an actual block, but there is a suggestion to make that in Scratch Suggestions here10^ofy*logofx
Last edited by MoreGamesNow (2012-02-29 18:31:39)
Offline
MrMonk999 wrote:
whenclicked
setzto1repeatysetztoz*x
Actually it'd need to be
But that doesn't work with decimals or negative numbers anyway.repeaty-1
Offline