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

#1 2012-07-18 16:05:58

DonutCannon
New Scratcher
Registered: 2012-07-02
Posts: 29

Advanced Math

I need help with the '_ of #' block.

I understand sqrt and abs, but could anyone tell me what the other functions are?

Offline

 

#2 2012-07-18 16:30:16

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Advanced Math


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#3 2012-07-18 16:38:19

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Advanced Math

Okay, here's the list of all of them:

abs: Absolute value, you said you know this one. 

sqrt: Square root, I take it you know that one. 

sin: Returns the sine of an angle.  The first trigonometric function.  If you imagine a right triangle with an angle measure of θ, sin(θ) is equal to the length of the leg opposite θ divided by the hypotenuse. 

cos: Returns the cosine of an angle.  Similar to sine, but instead of using the opposite leg, it uses the one adjacent to the angle.  Returns the value of the opposite over the hypotenuse. 

tan: Returns the tangent of an angle.  The tangent of θ is equal to the length of the leg opposite θ divided by that of the leg adjacent. 

asin: Arcsine, inverse sine function.  You give it a value for the opposite divided by hypotenuse, it gives you an angle measure. 

acos: Arccosine, inverse cosine function.  You give it a value for the adjacent divided by hypotenuse, it gives you the angle measure. 

atan: Arctangent, inverse tangent function.  You give it a value for the opposite leg divided by the adjacent leg, and it gives you the angle. 

ln: Natural logarithm.  The natural base, e = 2.71828183.  Imagine you input 5.  The definition of the natural logarithm is that ln(x) is the number such that e ^ ln(x) = x.  It's like the inverse operation of exponentiation. 

log: Like ln(x), only the base is 10 instead of e.  So, by definition, 10 ^ log(x) = x. 

e ^: Raises e to a given power. 

10 ^: Raises 10 to a given power.

EDIT: Wow, typed that out for nothing.  I completely forgot about the wiki.  You should read that article Prestige posted rather than this, it'll be much clearer.

Last edited by amcerbu (2012-07-18 16:39:51)

Offline

 

#4 2012-07-18 17:39:52

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Advanced Math

amcerbu wrote:

EDIT: Wow, typed that out for nothing.  I completely forgot about the wiki.  You should read that article Prestige posted rather than this, it'll be much clearer.

FInd I do that a lot  tongue


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

Board footer