Side-note: I've been in math mood lately!
____________________________________________________________________________________
Complete Gamma function:
Raise to power:
10 ^ ( exponent * log( number ) )
I will add more when I find more ways to put advanced math functions into Scratch.
Last edited by ThePCKid (2010-03-24 19:53:31)
Offline
Offline
How about:
(base and coefficient are both user-changeable)
If you want it done right.
Last edited by Greatdane (2010-03-20 11:05:18)
Offline
Greatdane wrote:
How about:
http://i41.tinypic.com/245ee6w.gif
(base and coefficient are both user-changeable)
If you want it done right.
I'm confused, what is that, "^"?
Offline
juststickman wrote:
Greatdane wrote:
How about:
http://i41.tinypic.com/245ee6w.gif
(base and coefficient are both user-changeable)
If you want it done right.I'm confused, what is that, "^"?
That script: raising to a power
Offline
nXIII wrote:
BTW the gamma function will always return 0 >.>
Because the result starts at 0.
Oops...
fixed
Offline
im a bit out of my depth at the moment, what do all these things do?
Offline
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
Well the (10^ (log ( )) is raisin to the power of...
The rest I haven't learned yet.
Offline
juststickman wrote:
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
Well the (10^ (log ( ) ) is raisin to the power of...
The rest I haven't learned yet.
there is no ( () ^ () ) blocks in scratch though...
Last edited by markyparky56 (2010-03-25 12:30:02)
Offline
markyparky56 wrote:
juststickman wrote:
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
Well the (10^ (log ( ) ) is raisin to the power of...
The rest I haven't learned yet.there is no ( () ^ () ) blocks in scratch though...
That is why we have to use 10^ log
Offline
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
OK, the log function is very interesting because it basically reduces operations to a lower level (multiplication becomes addition and powers become multiplication). We're basically reducing the x^y to 10^(log(x) * y). See the similarity? The number goes in the log and the power stays outside but is reduced to multiplication. We use '10^( )' because log returns a value (let's call it x) that makes this true: 10^(log(x) ) = x because it is the base 10 logarithm.
Sorry if I messed up somewhere...
Last edited by nXIII (2010-03-25 14:23:27)
Offline
ThePCKid wrote:
Side-note: I've been in math mood lately!
____________________________________________________________________________________
Complete Gamma function:
http://i39.tinypic.com/ajvu6q.gif
Raise to power:
10 ^ ( exponent * log( number ) )
I will add more when I find more ways to put advanced math functions into Scratch.
Neat!
You can see the exponentials in action in this project, if anyone is confused.
Offline
nXIII wrote:
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
OK, the log function is very interesting because it basically reduces operations to a lower level (multiplication becomes addition and powers become multiplication). We're basically reducing the x^y to 10^(log(x) * y). See the similarity? The number goes in the log and the power stays outside but is reduced to multiplication. We use '10^( )' because log returns a value (let's call it x) that makes this true: 10^(log(x) ) = x because it is the base 10 logarithm.
Sorry if I messed up somewhere...
So
But there is no ^ part, o how do you get that in scratch? Do you do
(x)*(Log( (X*Y) ) ?
Offline
markyparky56 wrote:
nXIII wrote:
markyparky56 wrote:
im a bit out of my depth at the moment, what do all these things do?
OK, the log function is very interesting because it basically reduces operations to a lower level (multiplication becomes addition and powers become multiplication). We're basically reducing the x^y to 10^(log(x) * y). See the similarity? The number goes in the log and the power stays outside but is reduced to multiplication. We use '10^( )' because log returns a value (let's call it x) that makes this true: 10^(log(x) ) = x because it is the base 10 logarithm.
Sorry if I messed up somewhere...So
But there is no ^ part, o how do you get that in scratch? Do you do
(x)*(Log( (X*Y) ) ?
Ok, sorry, iv found out you do it now.
Offline