Discuss Scratch

235x
Scratcher
72 posts

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

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
We probably could suggest that, just not in this topic.
VedanshS933
Scratcher
1000+ posts

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

Support! This would be easier to do the Exponents.
HelloJelloPeople
Scratcher
81 posts

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

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
They are, though…

Unless you mean multiplication of the root and not nth roots, though I'm pretty sure you mean nth roots.
BigNate469
Scratcher
1000+ posts

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

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ
unnor
Scratcher
500+ posts

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

BigNate469 wrote:

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ
ooh compex math!
hotcrystal
Scratcher
100+ posts

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

I had a post here about how a Scratch mod has this block, but it was deleted because the site had “loose or no moderation”.
rodper6635
Scratcher
100+ posts

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

+1, even if there is a workaround I shouldn't have to make an entire custom block script using advanced math just for a single operation.
korifiz
Scratcher
6 posts

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

+1. I have always wondered why there wasn't a exponent block. it would save a lot of effort.
210311m
Scratcher
17 posts

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

There are so many workarounds but many of which are quite complicated, I feel like it would be nicer on Scratchers if they simply added:
((x) ^ (y))
But nonetheless, I made this project:
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/908361185
which includes three different ways to get the above block to function.
shenmuueedoesnumbers
Scratcher
55 posts

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

BigNate469 wrote:

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ

cube root(-3)=-cube root(3)=~-1.44

(-3)^1/3=~0.7+1.2i
HelloJelloPeople
Scratcher
81 posts

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

shenmuueedoesnumbers wrote:

BigNate469 wrote:

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ

cube root(-3)=-cube root(3)=~-1.44

(-3)^1/3=~0.7+1.2i
negative cube roots should not include i. cubing any number, positive or negative, will result in that same sign.
(x)^(1/3)=cbrt(x)

Last edited by HelloJelloPeople (Jan. 28, 2025 20:19:46)

AlphabetSpaceBoy
Scratcher
1 post

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

+1. We definitely need this!
unnor
Scratcher
500+ posts

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

shenmuueedoesnumbers wrote:

BigNate469 wrote:

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ

cube root(-3)=-cube root(3)=~-1.44

(-3)^1/3=~0.7+1.2i

HelloJelloPeople wrote:

shenmuueedoesnumbers wrote:

BigNate469 wrote:

jmdzti_0-0 wrote:

Found out:
(() ^ ((1)/(x))::operators)
is NOT the same as
((x)√()::operators)
So maybe add the root block too
But it is though?

4 ^ (1/2)
is the equivalent of

²√4¹

Which is equivalent to

²√4

x ^ (y/z) = ᶻ√xʸ

cube root(-3)=-cube root(3)=~-1.44

(-3)^1/3=~0.7+1.2i
negative cube roots should not include i. cubing any number, positive or negative, will result in that same sign.
(x)^(1/3)=cbrt(x)
OOH COMPLEX MATH!!!
mingo-gag
Scratcher
500+ posts

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

Bump because of a dupe
235x
Scratcher
72 posts

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

mingo-gag wrote:

Bump because of a dupe
While I do think that is unlikely: Link please?
medians
Scratcher
1000+ posts

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

235x wrote:

mingo-gag wrote:

Bump because of a dupe
While I do think that is unlikely: Link please?
No, he's saying that there was a duplicate of this topic, which is the complete opposite of unlikely honestly.
hotcrystal
Scratcher
100+ posts

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

I just watched a YouTube video this morning about how x^1/y isn’t always the same as y root x, so maybe we should add the
([] root of []:: operators)
block too? Or is there a topic for that?
BigNate469
Scratcher
1000+ posts

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

hotcrystal wrote:

I just watched a YouTube video this morning about how x^1/y isn’t always the same as y root x, so maybe we should add the
([] root of []:: operators)
block too? Or is there a topic for that?
Isn't it though?

4 ^ (1/2) = ²✓4 = 2
TheBaton
Scratcher
100+ posts

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

I'm sort of mixed on this. It's actually fairly easy to do a workaround, so easy even I was able to do it myself.
when green flag clicked
set [x v] to (10)
set [y v] to (2)
if <(y) > (1)> then
set [answer v] to ((x) * (x))
repeat ((y) - (1))
set [answer v] to ((answer) * (x))
end
end
and so on, with more checks of course.
HighlaneGamingStudio
Scratcher
100+ posts

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

Support! Then we could get rid of this block (or at least remove it from the block palette):
([10^ v] of ()::operators)
I'm not entirely sure of the mechanics of this block, so I'm not sure if it should also be removed or not:
([e^ v] of ()::operators)

Powered by DjangoBB