Discuss Scratch

unnor
Scratcher
1000+ posts

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

nothingco wrote:

thebriculator wrote:

There is a workaround.
I'll try to express it without scratchblocks.

(10 ^ ) of (log(2) * (10))
where you're finding 2^10


Square roots: (and any roots)

(10 ^) of (log(8) / (3))
where you're finding the cube root of 8


obviously these do not work with exponents or roots of zero.

anyway I still +1 this block
an easier workaround is
when green flag clicked
repeat (y)
set (x) to ((x) * (x))
end
That does x^(2^y), not x^y, as well as only working with natural exponents.

Last edited by unnor (Sept. 30, 2026 19:58:15)

HAL95131
Scratcher
500+ posts

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

nothingco wrote:

thebriculator wrote:

There is a workaround.
I'll try to express it without scratchblocks.

(10 ^ ) of (log(2) * (10))
where you're finding 2^10


Square roots: (and any roots)

(10 ^) of (log(8) / (3))
where you're finding the cube root of 8


obviously these do not work with exponents or roots of zero.

anyway I still +1 this block
an easier workaround is
when green flag clicked
repeat (insert number)
set (n) to ((n) * (n))
end

thats really restrictive, the purpose of the exponent block is to provide accurate exponentiation with minimal precision errors
MrPrady2015
Scratcher
2 posts

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

How to find Exponents, Roots, and Square roots:

Hope this helps!

Powered by DjangoBB