## Discuss Scratch

- Discussion Forums
- » Suggestions
- » Block Suggestion: ( )^( )

- Masquerola
- Scratcher

100+ posts

### Block Suggestion: ( )^( )

So during school today I learned about an amazing formula, which required the exponent 2^x. As soon as I learned about the formula, I knew that I had to remake it in Scratch. However, I was surprised to find that the only exponent choices were 10^x and e^x.

It would be very beneficial of the block x^y was created. The block would look like this:

There are definitely workarounds, like

However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.

It would be very beneficial of the block x^y was created. The block would look like this:

(() ^ () :: operators)

There are definitely workarounds, like

repeat (y)

set [number v] to ((x) * (x))

end

However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.

*Last edited by Masquerola (April 16, 2015 19:18:51)*

- Fuzzbutt
- Scratcher

500+ posts

### Block Suggestion: ( )^( )

Yes, this would be very helpful, along with a factorial block. ( ! ) So during school today I learned about an amazing formula, which required the exponent 2^x. As soon as I learned about the formula, I knew that I had to remake it in Scratch. However, I was surprised to find that the only exponent choices were 10^x and e^x.

It would be very beneficial of the block x^y was created. The block would look like this:(() ^ ())(It would be green, however.)

There are definitely workarounds, likerepeat (y)

set [number v] to ((x) * (x))

end

However, the workaround is bulky, and hard to implement into large equations, which is why the x^y block would be a truly useful addition as a block.

Last edited by Kaj (Today 21:31:23)

Watch the trailer for The Mutant and follow it's official forum. The Mutant ~ Coming soon to scratch.

- CatsUnited
- Scratcher

1000+ posts

### Block Suggestion: ( )^( )

Support, suggested countless times though.

- Masquerola
- Scratcher

100+ posts

### Block Suggestion: ( )^( )

Support, even though it has been suggested countless times.

Use

(() ^ () :: operators)

to make the block green.

thanks

- cwrivera99
- Scratcher

500+ posts

### Block Suggestion: ( )^( )

Kinda support, although this workaround isn't too hard-

define (Number1) ^(Number2)

set [Output v] to (Number1)

repeat (Number2)

set [Output v] to ((Output) * (Number1))

end

when this block is clicked::sensing hat//FYI, this is my old account that I no longer use. My current account is @DaSpudLord.If you are reading this… Then congratulations! You have found the part of my signature that was eaten by a kumquat! (On a side note, you are probably in a kumquat's stomach.) Now get out of the kumquat's stomach and go do something productive with your life. Like playing this game over and over again. Very productive.

forever {do (a [scratch v]::events ring)::sound}::extension cstart

say [what the...?] in (the language of [the moon people v]::red)::control

create [spontaneous v] explosion in [a flea's stomach]::motion

That's not right...::cend

- Paddle2See
- Scratch Team

1000+ posts

### Block Suggestion: ( )^( )

A single line version that works for positive, fractional and negative powers…

Scratch Team Member, kayak enthusiast, and servant to multiple cats.

;

- Masquerola
- Scratcher

100+ posts

### Block Suggestion: ( )^( )

A single line version that works for positive, fractional and negative powers…

Thanks, this is the best and easiest workaround.

- Paddle2See
- Scratch Team

1000+ posts

### Block Suggestion: ( )^( )

You are welcome - and my thanks to my math teacher that taught me the properties of exponentsA single line version that works for positive, fractional and negative powers…

Thanks, this is the best and easiest workaround.

Scratch Team Member, kayak enthusiast, and servant to multiple cats.

;

- ChocolatePi
- Scratcher

1000+ posts

### Block Suggestion: ( )^( )

and apparently logarithms! nice work!You are welcome - and my thanks to my math teacher that taught me the properties of exponentsA single line version that works for positive, fractional and negative powers…

Thanks, this is the best and easiest workaround.

- Seapats
- Scratcher

70 posts

### Block Suggestion: ( )^( )

Surper surpport!

Three things i dislike:

1. Lists

2. Signatures

4. Irony

5. When people say they only are going to say 3 things then say 4.

- Discussion Forums
- » Suggestions
- » Block Suggestion: ( )^( )