Discuss Scratch
- Discussion Forums
- » Suggestions
- » Could we please have an exponents block? ( ) ^ ( )
- walkcycle
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
Sure there is. They are posted in this thread and in the earlier threads linked from this thread. There isn't an easy workaround….
3.0, fingers crossed. There could potentially be one if we had reporter functions but we don't.
- cul8er
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
But if there was, hypothetically, an easy workaround for a block with no redeeming features, then the block would be pointless and wouldn't be added.There isn't an easy workaround….There could potentially be one if we had reporter functions but we don't.But if there is a easy workaround, it's not worth the effort for the ST to put in a new block if there's no other reason for it to be included. Please don't post workabouts. I have had enough of them. It is better not to have the workabout because it merges the workabout into a smaller block, making there be more space for scripts.
-snip-
Like
switch backdrop to [previous v]
Gone.
- Sheep_maker
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Even if it has a workaround, that doesn't mean it should never be implemented; it just means the ST should prioritise other suggestions above the workaroundable ones
Also, this is still a duplicate.
Also, this is still a duplicate.
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- Charles12310
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Yeah, read sixth suggestion: Even if it has a workaround, that doesn't mean it should never be implemented; it just means the ST should prioritise other suggestions above the workaroundable oneshttps://scratch.mit.edu/discuss/topic/215499/
Also, this is still a duplicate.
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- DownsGameClub
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
Last edited by DownsGameClub (July 17, 2017 06:20:54)
–DGC
Scratcher since Aug. 2015 +++ Fire Alarm Enthusiast +++ College student studying fire protection engineering
- kenny2scratch
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
Refusing to look at workarounds is Please don't post workabouts.not acceptable. If there is a good and reliable workaround to the block, then use the workaround instead of suggesting the block.
In this particular case, there were two tiny workarounds that worked absolutely fine: It is better not to have the workabout because it merges the workabout into a smaller block, making there be more space for scripts.
They're small enough that they take almost no extra script space.([10^ v] of ((power) * ([log v] of (base))) :: operators )
([e^ v] of ((power) * ([ln v] of (base))) :: operators )
Honestly, refusing workarounds is not going to get you any support. If there's a workaround, use it! New blocks are exceedingly rare (although a bunch are being added in 3.0) and most suggestions don't come through.
post brought to you by the preview links bug and previously the uploads site bug. 看一下中文 Scratch 維基!想參加?請參考這頁。
- Blaze349
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Most of the languages that I have used, have this function in their math library. Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
- kenny2scratch
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
In Python it's ** instead of ^… is that what you wanted?~~~~ Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
post brought to you by the preview links bug and previously the uploads site bug. 看一下中文 Scratch 維基!想參加?請參考這頁。
- DownsGameClub
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
In Python it's ** instead of ^… is that what you wanted?~~~~ Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
Yeah… @kenny2scratch what does ^ do in Python then?Most of the languages that I have used, have this function in their math library. Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
–DGC
Scratcher since Aug. 2015 +++ Fire Alarm Enthusiast +++ College student studying fire protection engineering
- cul8er
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
Google says ‘bitwise xor’ whatever that means.In Python it's ** instead of ^… is that what you wanted?~~~~ Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…Yeah… @kenny2scratch what does ^ do in Python then?Most of the languages that I have used, have this function in their math library. Is there a function in other programming languages that calculates exponents? I have a feeling the ^ symbol may cause a bit of confusion if there is a different function input, as already with the == (which is pretty easy to memorize though)…
Gone.
- Blaze349
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Just because it has a workaround doesn't mean it shouldn't be a feature. That workaround applies to other languages but they still have it.
These are workaroundable (is that a word):
I put all the operators together.
These are workaroundable (is that a word):
repeat ()
end
go to x: () y: (0)
glide () secs to x: (0) y: (0)
if on edge, bounce
next costume
next backdrop
change [ v] effect by (25)
(pick random (((() mod (0)) / (0)) * (0)) to (10))
change [<[ v] contains [thing] ?> v] by (0)
I put all the operators together.
Last edited by Blaze349 (July 17, 2017 07:09:52)
- cul8er
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
But if the block has Just because it has a workaround doesn't mean it shouldn't be a feature. a relatively easy workaround, with no other good reason why it should be included other than the slight ease of use provided by the condensation, then it is not worth the effort to include it. This proposed block satisfies both of these conditions.
Gone.
- Blaze349
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Did you miss part two?But if the block has Just because it has a workaround doesn't mean it shouldn't be a feature. a relatively easy workaround, with no other good reason why it should be included other than the slight ease of use provided by the condensation, then it is not worth the effort to include it. This proposed block satisfies both of these conditions.
All these blocks can be easily (and some not so easily) worked around
repeat ()
end
go to x: () y: (0)
glide () secs to x: (0) y: (0)
if on edge, bounce
next costume
next backdrop
change [ v] effect by (25)
(pick random (((() mod (0)) / (0)) * (0)) to (10))
change [<[ v] contains [thing] ?> v] by (0)
The most obvious of this is change variable. That is literally:
set [foo v] to ((foo) + (5))
- cul8er
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
Yes, but there are good reasons for their inclusion.Did you miss part two?But if the block has Just because it has a workaround doesn't mean it shouldn't be a feature. a relatively easy workaround, with no other good reason why it should be included other than the slight ease of use provided by the condensation, then it is not worth the effort to include it. This proposed block satisfies both of these conditions.
All these blocks can be easily (and some not so easily) worked aroundrepeat ()
end
go to x: () y: (0)
glide () secs to x: (0) y: (0)
if on edge, bounce
next costume
next backdrop
change [ v] effect by (25)
(pick random (((() mod (0)) / (0)) * (0)) to (10))
change [<[ v] contains [thing] ?> v] by (0)
The most obvious of this is change variable. That is literally:set [foo v] to ((foo) + (5))
Gone.
- Blaze349
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Like? Yes, but there are good reasons for their inclusion.
Oh
the slight ease of use provided by the condensation
Last edited by Blaze349 (July 17, 2017 07:55:14)
- Blaze349
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Bump 4 year old topic
- ConConScratch
- Scratcher
42 posts
Could we please have an exponents block? ( ) ^ ( )
IKR But what if we wanted to do x^50 or something? Why use 50 blocks when you could use 1?
EDIT: Support (though I started this post topic, so…)
define (delete account)
set [projects v] to [0]
add [Lists] to [forgotten tabs]
Why do we have to manually add pen and music tabs?
- ConConScratch
- Scratcher
42 posts
Could we please have an exponents block? ( ) ^ ( )
Oh, and to come with it, could we get an nth root of x block?
define (delete account)
set [projects v] to [0]
add [Lists] to [forgotten tabs]
Why do we have to manually add pen and music tabs?
- Sheep_maker
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Oh, and to come with it, could we get an nth root of x block?
((x::grey)^((1)/(n::grey))::operators)
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }