Discuss Scratch
- Discussion Forums
- » Suggestions
- » Could we please have an exponents block? ( ) ^ ( )
- Zomboss9001
- Scratcher
36 posts
Could we please have an exponents block? ( ) ^ ( )
define (number1)^(number2)
repeat (number2)
set [number1] to ((number) * (number1))
end
- Botcho_Otkho
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
That only works for positive and non-decimal integers.define (number1)^(number2)
repeat (number2)
set [number] to ((number) * (number1))
end
Last edited by Botcho_Otkho (April 2, 2018 19:49:36)
I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
- ronsid
- Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
Support
(() ^ ()::operators)
This siggy is protected by the Antiquat group
when green flag clicked
say [Scratch Time] for (2) secs
broadcast [funtime v]
when I receive [funtime v]
say [ Yaay] for (2) secs
- convoluto-
- Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
You can't necropost in the suggestion forums.I know this is technically necroposting but you raise a good point! An exponent block would certainly make things easier for teachers working with Scratch! Please, please, please add this as an operator just like +-*/ it's a real limitation when teaching a lot of math concepts not to have exponentiation.
Expert memelord in the making.
So far, I've made: 3 memes! ( in photoshop )
You cannot trust any of my posts because I am dumb. Some may be right, though.
Loquat + kumquat protector: - Bob
- Botcho_Otkho
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Reasons? Support(() ^ ()::operators)
I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
- hailstone-sequence
- New to Scratch
61 posts
Could we please have an exponents block? ( ) ^ ( )
Try Shushport! If there is a workaround, it's super-duper-mega long and it's annoying to have a total of 34 blocks for just one reporter.() ^ ()::operators reporter
It is only 5 blocks.([10^ v] of ((exponent) * ([log v] of (number) :: operators )) :: operators )
▀▄ ▀▄ ▀▄ ▀▄ ▀▄ ▀▄ A simple workaround is a valid reason to not support a suggestion. ▄▀ ▄▀ ▄▀ ▄▀ ▄▀ ▄▀
say ( last [thing I said v] :: looks)"I think it'd be handy to have some way to disable dragging while in editor mode…" -TheLogFather
think ( last [thing I thought v] :: looks)
Is this gone 4evr?
▄▀ ▄▀ ▄▀ ▄▀ ▄▀ ▄▀
▄▀ ▄▀ ▄▀ ▄▀ ▄▀ ▄▀
- Happysoul05
- Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
No support.
Not many scratchers use this.
If they use they will only go to 1,2,3,4,5 but will not try 1.5 or 125.
There is a long workaround and
USE THIS!
Not many scratchers use this.
If they use they will only go to 1,2,3,4,5 but will not try 1.5 or 125.
There is a long workaround and
([10^ v] of ((exponent) * ([log v] of (number) :: operators )) :: operators )
USE THIS!
Check out my friend CaptainDinosaurGames' Anti flux
PICTIONARY !
An employee at The Meow Shop
Bomber Cat
Smash Boy Adventures - A platformer
1945
Check out profile for more !
- ACE009
- Scratcher
100+ posts
Could we please have an exponents block? ( ) ^ ( )
~snip~The problem with that is that you can’t get exact results because of the values being cut off mid calculation, resulting in things like 2^6=63.999999999995. Thus, I support.
TryIt is only 5 blocks.([10^ v] of ((exponent) * ([log v] of (number) :: operators )) :: operators )
Last edited by ACE009 (May 30, 2018 11:07:05)
when this signature read :: events hat
if <I know what [kumquats] are :: sensing> then //false
have (Katty :: pen) [eat v] [nearby kumquats v] :: motion // Katty eats the kumquats for me, whatever they are
else
learn what [kumquats] are :: sensing // this block must be malfunctional
end
- ----WindowsXD-----
- Scratcher
82 posts
Could we please have an exponents block? ( ) ^ ( )
(5^7)
report ()
when I receive [ scratch fourmsMy browser / operating system: Windows NT 10.0 (2015), Chrome 65.0.3325.181, Flash 30.0 (release 0) my processer: HP (Hewlett Packard)
tell.
solve.
know.
Gimme A Free Internet If You Want!
please give me one,i'm VERY poor and no one cares
- thelostgames
- Scratcher
58 posts
Could we please have an exponents block? ( ) ^ ( )
define (number) to the power of (exponent)
set [num v] to (number)
repeat (exponent)
set [num v] to ((num) * (num))
end
This should work
Last edited by thelostgames (Sept. 15, 2018 00:19:18)
No form of coding is right or wrong, they are all simply ways of developing your brain to reach new levels.
Find me here: HERE!
- Botcho_Otkho
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Not when the number ia negative or decimal.define (number) to the power of (exponent)
set [num v] to (number)
repeat (exponent)
set [num v] to ((num) * (num))
end
This should work
I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
- badatprogrammingibe
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
BUMP
USER
META
PRAY
- HappyMohid
- Scratcher
72 posts
Could we please have an exponents block? ( ) ^ ( )
<() ^ () = ()>
so hard
if <(1) ^ (1) = (10)>
when <(1) ^(1) = (10)>
<(●◡● ::#222222)> // just a happy guy
- ScratchDiogoh
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
What is hard, too? also make a new topic<() ^ () = ()>
so hardif <(1) ^ (1) = (10)>when <(1) ^(1) = (10)>
+1700 Bad Posts
- space_elephant
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
support, though there is a workaround.
define (base)^(exponent)::reporter
if<(base)<[0]>::control
if<((exponent)mod(1))=[0]>::control
if<((exponent)mod(2))=[0]>::control
return([e ^ v]of((exponent)*([ln v]of(()-(base)))))::#000 cap
else
return(()-([e ^ v]of((exponent)*([ln v]of(()-(base))))))::#000 cap
end
else
return[NaN]::#000 cap//it is complex
end
else
return([e ^ v]of((exponent)*([ln v]of(base))))::#000 cap
end
- space_elephant
- Scratcher
500+ posts
Could we please have an exponents block? ( ) ^ ( )
Actually, 3.14 ^ 3.14 results in 30.959 on my custom block (about seven posts above). Try it. It just doesn't work with negative numbers or fractions. And my project barely involves any heavy scripting or math at all. All you need is: The short version works for all real numbers, the long one doesn't.
- three variables
- a repeat block
- a subtraction and a multiplication block
- a set variable block
That's it. It took me like two minutes.
3.14 ^ 3.14 = 36.33783888017471
you got 3.14 ^ 3 = 30.959144000000002
Support((0) ^ (0) :: operators)[/quote]
Not a good example. Most languages answer one.
Support suggestion.
- TheGreenFlash
- New to Scratch
28 posts
Could we please have an exponents block? ( ) ^ ( )
I believe this block would be helpful because it could be used in many projects that use physics simulators, 3D, and other things with a lot of math, there is no easy or efficient workaround, especially when using decimals, and Scratchers who don't know about exponents might play around with and learn about them.
For these reasons, I support and hope that the Scratch Team decides to add the Exponential Operator Block to Scratch.
For these reasons, I support and hope that the Scratch Team decides to add the Exponential Operator Block to Scratch.
- noogai34
- Scratcher
46 posts
Could we please have an exponents block? ( ) ^ ( )
Turn Left (0 ^ 0) radians:: motionStill thinking about it
Last edited by noogai34 (April 28, 2019 18:53:40)
S U C C
- noogai34
- Scratcher
46 posts
Could we please have an exponents block? ( ) ^ ( )
define (base) ^ (exponent):: reporterNo support, the above code is a workaround
set [variable v] to (base:: custom - arg)
repeat (exponent:: custom - arg)
change [variable v] by ((base) * (base))
end
But it would still be handy in the education industry!
Last edited by noogai34 (April 28, 2019 21:42:47)
S U C C
- imfh
- Scratcher
1000+ posts
Could we please have an exponents block? ( ) ^ ( )
Support, workarounds are less precise and more costly than this could be. It shouldn't be difficult to implement either. The only downside that I could think of is that it might be confusing to some Scratchers or seem too advanced.
That solution works if you only need to work with small powers, but not if you want to do many large ones and quickly. The point of adding it is so there is no need to use a workaround.define (base) ^ (exponent):: reporterNo support, the above code is a workaround
set [variable v] to (base:: custom - arg)
repeat (exponent:: custom - arg)
change [variable v] by ((base) * (base))
end
But it would still be handy in the education industry!
Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/