Discuss Scratch
- Discussion Forums
- » Suggestions
- » Block Suggestion: ( )^( )
- Masquerola
-
100+ posts
Block Suggestion: ( )^( )
So during school today I learned about an amazing formula, which required the exponent 2^x. As soon as I learned about the formula, I knew that I had to remake it in Scratch. However, I was surprised to find that the only exponent choices were 10^x and e^x.
It would be very beneficial of the block x^y was created. The block would look like this:
There are definitely workarounds, like
However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.
It would be very beneficial of the block x^y was created. The block would look like this:
(() ^ () :: operators)
There are definitely workarounds, like
repeat (y)
set [number v] to ((x) * (x))
end
However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.
Last edited by Masquerola (April 16, 2015 19:18:51)
- Fuzzbutt
-
500+ posts
Block Suggestion: ( )^( )
Yes, this would be very helpful, along with a factorial block. ( ! ) So during school today I learned about an amazing formula, which required the exponent 2^x. As soon as I learned about the formula, I knew that I had to remake it in Scratch. However, I was surprised to find that the only exponent choices were 10^x and e^x.
It would be very beneficial of the block x^y was created. The block would look like this:(() ^ ())(It would be green, however.)
There are definitely workarounds, likerepeat (y)
set [number v] to ((x) * (x))
end
However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.
- CatsUnited
-
1000+ posts
Block Suggestion: ( )^( )
Support, suggested countless times though.
- stickfiregames
-
1000+ posts
Block Suggestion: ( )^( )
Support, even though it has been suggested countless times.
Use
(() ^ () :: operators)
to make the block green.
Use
(() ^ () :: operators)
to make the block green.
Last edited by stickfiregames (April 16, 2015 17:32:15)
- Masquerola
-
100+ posts
Block Suggestion: ( )^( )
Support, even though it has been suggested countless times.
Use
(() ^ () :: operators)
to make the block green.
thanks

- cwrivera99
-
500+ posts
Block Suggestion: ( )^( )
Kinda support, although this workaround isn't too hard-
define (Number1) ^(Number2)
set [Output v] to (Number1)
repeat (Number2)
set [Output v] to ((Output) * (Number1))
end
- Paddle2See
-
1000+ posts
Block Suggestion: ( )^( )
A single line version that works for positive, fractional and negative powers…


- Masquerola
-
100+ posts
Block Suggestion: ( )^( )
A single line version that works for positive, fractional and negative powers…
Thanks, this is the best and easiest workaround.

- Paddle2See
-
1000+ posts
Block Suggestion: ( )^( )
You are welcome - and my thanks to my math teacher that taught me the properties of exponentsA single line version that works for positive, fractional and negative powers…
Thanks, this is the best and easiest workaround.

- ChocolatePi
-
1000+ posts
Block Suggestion: ( )^( )
and apparently logarithms! nice work!You are welcome - and my thanks to my math teacher that taught me the properties of exponentsA single line version that works for positive, fractional and negative powers…
Thanks, this is the best and easiest workaround.
- HTML-Fan
-
1000+ posts
Block Suggestion: ( )^( )
We really need this block, because you can't do the repeat thing for floats. I already suggested blocks like this, this is similar (don't get me wrong, this is not a duplicate).
- Nambaseking01
-
1000+ posts
Block Suggestion: ( )^( )
Support.
Why not implement this? There are way less-commonly used formulas on Scratch like abs() and cos() but this hasn't been implemented. I find it very fun to play around with high numbers in programming, and I can imagine me using this quite a lot. This could also be really useful for complex projects, which I think is obvious.
Why not implement this? There are way less-commonly used formulas on Scratch like abs() and cos() but this hasn't been implemented. I find it very fun to play around with high numbers in programming, and I can imagine me using this quite a lot. This could also be really useful for complex projects, which I think is obvious.
- Zelfen
-
1000+ posts
Block Suggestion: ( )^( )
Guys please stop necroposting this was made in 2015
- HTML-Fan
-
1000+ posts
Block Suggestion: ( )^( )
And it's still not fixed, so it's more important then ever! Guys please stop necroposting this was made in 2015
- xMystic416
-
100+ posts
Block Suggestion: ( )^( )
It's not necroposting if you are actually adding to the conversation. Guys please stop necroposting this was made in 2015
Also, I would support! Although there is a pretty simple workaround that @Paddle2See made, I would definitely find this useful.
- Discussion Forums
- » Suggestions
-
» Block Suggestion: ( )^( )