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

#1 2012-08-03 16:47:29

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Help with Powers

My project involves powers and I'm not sure how to put it into my scripts.

The sum is: 9.23076*((26.7-b)to the power of 1.835)

I can do

([9.23076]*([26.7]-(b)))
but I'm not sure how to input the power of 1.835 in blocks. Can anyone help please?

I hope you understand me, but if you don't I'll try to clarify.

Thank You.

Last edited by PhirripSyrrip (2012-08-03 16:48:13)


http://i46.tinypic.com/ao03lk.png

Offline

 

#2 2012-08-03 18:00:50

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

Re: Help with Powers

The blocks you need are:

([log v] of (number))
([l10^ v] of (number))
((number) * (number))
Using one of the law of logs:
log(a^b) = b*log(a)
you can then raise 10 to the power of this to find the desired power since:
10^(log(a) ) = a
so that your final equation looks like:
([l10^ v] of ((exponent)*([log v] of (base))))

Last edited by AtomicBawm3 (2012-08-03 18:01:17)


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

Offline

 

#3 2012-08-04 05:11:41

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Help with Powers

Sorry, I'm a bit confused. What do you mean by the "base"?


http://i46.tinypic.com/ao03lk.png

Offline

 

#4 2012-08-04 07:42:27

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Help with Powers

PhirripSyrrip wrote:

Sorry, I'm a bit confused. What do you mean by the "base"?

In X^n X is the base, n is the exponent

Last edited by zammer990 (2012-08-04 07:42:34)


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-08-04 08:00:11

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Help with Powers

Thank you.


http://i46.tinypic.com/ao03lk.png

Offline

 

Board footer