Discuss Scratch

PkmnQ
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

scratchisthebest wrote:

by this logic, we can remove “move (10) steps”

why not just use
go to x: ((x position) + ([cos v] of ((direction)*(amt)))) y ((x position) + ([sin v] of ((direction)*(amt))))
i mean jeez so simple
how is that simple?
you should've used
change x by ()
as the easy workaround block.
still, your point is good.

Last edited by PkmnQ (May 27, 2017 09:05:54)


This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

DIAMOND_77
Scratcher
15 posts

Could we please have an exponents block? ( ) ^ ( )

there is a work around
DIAMOND_77
Scratcher
15 posts

Could we please have an exponents block? ( ) ^ ( )

if you want to say do 3^3 you just do this: ((3)*(3) *(3)) just put an operator in an operator!
DIAMOND_77
Scratcher
15 posts

Could we please have an exponents block? ( ) ^ ( )

see ya
stickfiregames
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

DIAMOND_77 wrote:

there is a work around
So how would you do 4 ^ 1.5 with that workaround? I think you'll find you can't.










If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
78ch3
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

This is a new block that reports the value of input 1 to the power of input 2. It will be an operators block and a reporter block.
Like this:
()^()::operators reporter
It could figure out mathematical problems for calculator projects. The downside is that people could do this:
(99999999999999999999)^(99999999999999999999)::operators reporter
This could cause extreme lag due to the fact that it is a large number to the power of a large number. Although it is solvable, it will take a loooooooooooooooooooooong time to complete.
The good thing is that it will be very useful and can help people with figuring out problems.

Please do not post things like “no support. There is a workabout (workabout script)” because I have had enough of those. Please fully describe why it wouldn't be a good block.

Thank you for considering this.

Sup, I’m 78ch3, person on the internet, TBGForums Member, owner of 78ch3's Everything Shop™ + The United Shops Of Scratch + Scratch Shop Reviewers Federation, and a very lazy person in general (IDK why). My pronouns are she/they for anyone interested. The bold orange words are links. Click them plz
Click here to find out how to get into any scratch account, without the password
Liquid Metal LLC - Information, Investigation, Infiltration /|\ Click to join the Advanced Stealth Combat RP /|\

My PC: AMD Ryzen 7 5800X, AMD Radeon RX 6800XT ROG Strix Liquid cooled OC edition, ROG Strix x570-E Gaming, Corsair Vengeance Pro 32GB DDR4 (4x8GB), Seagate FireCuda 520 PCIe Gen 4 NVMe (500GB), Crucial P2 PCIe Gen 3 NVMe (1TB), Corsair HX1000, Gigabyte G34WQC, RIG 800HD.
I mostly play Fortnite, Minecraft, Call of Duty and Rainbow 6 Siege



Oh, you won’t see this without a ctrl+shift+down.
People need better thumbnails.
Also there's a lot of anti-kumquat equipment but the kumquats are too scared to come within 100 kilometres of me.
DownsGameClub
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

This has been suggested before. I'll try finding the duplicate.

–DGC
Scratcher since Aug. 2015 +++ Fire Alarm Enthusiast +++ College student studying fire protection engineering
Fupicat
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Wait, there isn't a block like this already? Weird. Support.



DownsGameClub
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Fupicat wrote:

Wait, there isn't a block like this already? Weird. Support.
Surprisingly there isn't.

I'm not sure if this would be a duplicate. There is a workaround mentioned in this topic that is very indirect but is easy to learn though- https://scratch.mit.edu/discuss/topic/70660/

–DGC
Scratcher since Aug. 2015 +++ Fire Alarm Enthusiast +++ College student studying fire protection engineering
Sheep_maker
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Duplicate, found via searching “exponent” instead of “to the power of”

Last edited by Sheep_maker (July 16, 2017 13:29:52)


- 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; }
walkcycle
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

The omission is deliberate. An important part of programming is creating useful things from the building blocks you already have.
78ch3
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Sheep_maker wrote:

Duplicate, found via searching “exponent” instead of “to the power of”
Not all duplicates are the same. Mine is easier to understand.

Sup, I’m 78ch3, person on the internet, TBGForums Member, owner of 78ch3's Everything Shop™ + The United Shops Of Scratch + Scratch Shop Reviewers Federation, and a very lazy person in general (IDK why). My pronouns are she/they for anyone interested. The bold orange words are links. Click them plz
Click here to find out how to get into any scratch account, without the password
Liquid Metal LLC - Information, Investigation, Infiltration /|\ Click to join the Advanced Stealth Combat RP /|\

My PC: AMD Ryzen 7 5800X, AMD Radeon RX 6800XT ROG Strix Liquid cooled OC edition, ROG Strix x570-E Gaming, Corsair Vengeance Pro 32GB DDR4 (4x8GB), Seagate FireCuda 520 PCIe Gen 4 NVMe (500GB), Crucial P2 PCIe Gen 3 NVMe (1TB), Corsair HX1000, Gigabyte G34WQC, RIG 800HD.
I mostly play Fortnite, Minecraft, Call of Duty and Rainbow 6 Siege



Oh, you won’t see this without a ctrl+shift+down.
People need better thumbnails.
Also there's a lot of anti-kumquat equipment but the kumquats are too scared to come within 100 kilometres of me.
walkcycle
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

78ch3 wrote:

Not all duplicates are the same. Mine is easier to understand.
But yours is the same suggestion.
Sheep_maker
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

78ch3 wrote:

Sheep_maker wrote:

Duplicate, found via searching “exponent” instead of “to the power of”
Not all duplicates are the same. Mine is easier to understand.
Unfortunately I think duplicates are prioritised by when they were made, not by quality of the OP. Though occasionally duplicates are merged

- 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? ( ) ^ ( )

Here's a workaround:

([10^ v] of ((power) * ([log v] of (base))) :: operators )

or:

([e^ v] of ((power) * ([ln v] of (base))) :: operators )

You could also do (for positive numbers):

define find (base)^(power)
set [result v] to (1)
repeat (power)
set [result v] to ((result) * (base))
end

Last edited by Charles12310 (July 17, 2017 00:46:32)



A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
Charles12310
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Charles12310 wrote:

Here's a workaround:

([10^ v] of ((power) * ([log v] of (base))) :: operators )

or:

([e^ v] of ((power) * ([ln v] of (base))) :: operators )

You could also do (for positive numbers):

define find (base)^(power)
set [result v] to (1)
repeat (power)
set [result v] to ((result) * (base))
end

Updated:

define find (base)^(power)
set [result v] to (1)
repeat ([abs v] of (power))
set [result v] to ((result) * (base))
end
if <(power) < (0)> then
set [result v] to ((1)/(result))
end

Last edited by Charles12310 (July 17, 2017 00:47:53)



A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
Charles12310
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

Charles12310 wrote:

Charles12310 wrote:

Here's a workaround:

([10^ v] of ((power) * ([log v] of (base))) :: operators )

or:

([e^ v] of ((power) * ([ln v] of (base))) :: operators )

You could also do (for positive numbers):

define find (base)^(power)
set [result v] to (1)
repeat (power)
set [result v] to ((result) * (base))
end

Updated:

define find (base)^(power)
set [result v] to (1)
repeat ([abs v] of (power))
set [result v] to ((result) * (base))
end
if <(power) < (0)> then
set [result v] to ((1)/(result))
end
Anyways, Support.


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
78ch3
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

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.

Sup, I’m 78ch3, person on the internet, TBGForums Member, owner of 78ch3's Everything Shop™ + The United Shops Of Scratch + Scratch Shop Reviewers Federation, and a very lazy person in general (IDK why). My pronouns are she/they for anyone interested. The bold orange words are links. Click them plz
Click here to find out how to get into any scratch account, without the password
Liquid Metal LLC - Information, Investigation, Infiltration /|\ Click to join the Advanced Stealth Combat RP /|\

My PC: AMD Ryzen 7 5800X, AMD Radeon RX 6800XT ROG Strix Liquid cooled OC edition, ROG Strix x570-E Gaming, Corsair Vengeance Pro 32GB DDR4 (4x8GB), Seagate FireCuda 520 PCIe Gen 4 NVMe (500GB), Crucial P2 PCIe Gen 3 NVMe (1TB), Corsair HX1000, Gigabyte G34WQC, RIG 800HD.
I mostly play Fortnite, Minecraft, Call of Duty and Rainbow 6 Siege



Oh, you won’t see this without a ctrl+shift+down.
People need better thumbnails.
Also there's a lot of anti-kumquat equipment but the kumquats are too scared to come within 100 kilometres of me.
cul8er
Scratcher
500+ posts

Could we please have an exponents block? ( ) ^ ( )

78ch3 wrote:

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.
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.

Gone.
Blaze349
Scratcher
1000+ posts

Could we please have an exponents block? ( ) ^ ( )

cul8er wrote:

78ch3 wrote:

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.
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.
There isn't an easy workaround….There could potentially be one if we had reporter functions but we don't.

2 ^ of something (11 I think).
(((((((((((2) * (2)) * (2)) * (2)) * (2)) * (2)) * (2)) * (2)) * (2)) * (2)) * (2))

Powered by DjangoBB