## Discuss Scratch

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

( ( var ) ^ ( var ) )

PPPPPPPLLLLLLLLLLLLLZZZZZZZZZZZZ!!!!!!!!!!!!!!!!!!!

PPPPPPPLLLLLLLLLLLLLZZZZZZZZZZZZ!!!!!!!!!!!!!!!!!!!

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

But what if we wanted to do x^50 or something? Why use 50 blocks when you could use 1?

EDIT: Support (though I started this post topic, so…)

EDIT: Support (though I started this post topic, so…)

*Last edited by 8solarplanets (July 4, 2013 02:56:03)*

- mitchboy
- Scratcher

1000+ posts

### Exponent block

You wouldn't need 50 blocks. I'm currently working on a x^y custom block right now, if you're interested. But what if we wanted to do x^50 or something? Why use 50 blocks when you could use 1?

Capsicum annuum.

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

Thanks. (I have Scratch 2.0, never heard of 1.4…)

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

But what if we wanted, for example 84 ^ 59? There's no block for that.

- mitchboy
- Scratcher

1000+ posts

### Exponent block

There now is. But what if we wanted, for example 84 ^ 59? There's no block for that.

This project.

EDIT: 84 ^ 59 = 3.40782965354148e+113. Boom.

*Last edited by mitchboy (July 4, 2013 03:35:03)*

Capsicum annuum.

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

But I wanted a block that you could link to other blocks, not a project.

EDIT: An operator block.

EDIT: An operator block.

*Last edited by 8solarplanets (July 4, 2013 03:36:24)*

- mitchboy
- Scratcher

1000+ posts

### Exponent block

You can go see inside, drag the custom block script into your backpack, and boom! You now have a x ^ y block! (Note: requires a variable named Result.) But I wanted a block that you could link to other blocks, not a project.

EDIT: An operator block.

Capsicum annuum.

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

…I want it implemented so that EVERY SCRATCH USER can have one, not just the code geeks.

- kayybee
- Scratcher

1000+ posts

### Exponent block

Actually, that's not the problem. You can do set X to 1, and repeat {set X to X*84} 59 times. But what if we wanted, for example 84 ^ 59? There's no block for that.

The problem is like 84^(pi) or stuff. You can't repeat something pi times.

So we use logs.

But younger scratchers might not know logs, and you can't create custom returning values right now, so this would be good.

But saying PPPPPPPPLLLLLLLLLZZZZZZZ just makes you seem immature, so it's not the greatest idea to put that in your suggestion.

- 8solarplanets
- New to Scratch

100+ posts

### Exponent block

It's like a demand, e.g. I WANT CAKE AND IF I DO NOT GET 49620672093657 SLICES I WILL GO ON STRIKE AND AVOID WORK!!!!!!!!!!!

- ProdigyZeta7
- Scratcher

1000+ posts

### Exponent block

Calm down, please. What you ask is already suggested before several times. And don't worry, I'm sure at some point they'll add the exponent block.

The workarounds goes like this:

The workarounds goes like this:

//short version

x ^ y = 10 ^ (y * log x)

//long version

if y = 0

set x = 1

else

tempx = x

repeat (y - 1)

x = x * tempx

*Last edited by ProdigyZeta7 (July 4, 2013 05:35:36)*

- kayybee
- Scratcher

1000+ posts

### Exponent block

Calm down, please. What you ask is already suggested before several times. And don't worry, I'm sure at some point they'll add the exponent block.

The workarounds goes like this://short version

x ^ y = 10 ^ (y * log x)

//long version

if y = 0

set x = 1

else

tempx = x

repeat (y - 1)

x = x * tempx

your “long version” workaround isn't really the same as te short version.

The short version works for all real numbers, the long one doesn't.

- mitchboy
- Scratcher

1000+ posts

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

*Last edited by mitchboy (July 4, 2013 17:09:55)*

Capsicum annuum.

- Photoguy77
- Scratcher

100+ posts

### Exponent block

I certainly support this!

-Photoguy77

“Without enjoying, one will never truly learn” ~Flome

“Finding happiness starts in you” ~ProdigyZeta7

- RalphMath
- New to Scratch

27 posts

### Exponent block

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.

- Iditaroid
- Scratcher

500+ posts

### Exponent block

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.