This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-19 16:30:21

ashfm
New Scratcher
Registered: 2011-08-17
Posts: 16

Raised to the power

Hi

Can anyone tell me what is quickest way of doing this: 3 raised to the power of 3 in Scratch i.e. 3*3*3

Thanks

Offline

 

#2 2011-08-19 16:33:30

Barf_Bag
Scratcher
Registered: 2011-07-10
Posts: 100+

Re: Raised to the power

That is the quickest way, unfortunately.


http://i56.tinypic.com/33tiavp.png

Offline

 

#3 2011-08-19 16:36:15

ashfm
New Scratcher
Registered: 2011-08-17
Posts: 16

Re: Raised to the power

Thanks

Offline

 

#4 2011-08-19 17:35:11

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Raised to the power

That is the quickest.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#5 2011-08-21 16:11:29

cpumaster930
Scratcher
Registered: 2009-02-23
Posts: 100+

Re: Raised to the power

Actually, if you have a large power to raise to, there's a much easier (yet more complex) way using logarithms documented on the Scratch Wiki. ;D

http://wiki.scratch.mit.edu/images/Exponent_log_method.png

For more info: http://wiki.scratch.mit.edu/wiki/Solving_Exponents

Hope this helps! ;D


http://i.imgur.com/Qd0lu.png

Offline

 

#6 2011-08-21 16:30:11

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Raised to the power

Cpumaster is right and if don't want to have to remember that formula, here's a project that does it for you: http://scratch.mit.edu/projects/AtomicBawm3/1633655


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#7 2011-08-21 17:20:26

Germanium_Tinide
New Scratcher
Registered: 2011-01-11
Posts: 39

Re: Raised to the power

cpumaster930 wrote:

Actually, if you have a large power to raise to, there's a much easier (yet more complex) way using logarithms documented on the Scratch Wiki. ;D

For more info: http://wiki.scratch.mit.edu/wiki/Solving_Exponents

Hope this helps! ;D

yikes

Wow, I cannot believe I did not think of that yet XD
I had forgotten, that Scratch allowed 10 and e to Powers.

This is much simpler than my Plan of using trigonometric power Identities.

Offline

 

Board footer