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

#1 2012-08-05 17:51:47

leondoubleh
Scratcher
Registered: 2012-01-29
Posts: 21

...umm what does this mean?

what does the operator
[scratch blocks]
[abs of 10]
mean ad the rest of the menu options for that such as tan?

Offline

 

#2 2012-08-05 18:02:11

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

Re: ...umm what does this mean?

There is a full list on the Scratch wiki.

Abs means absolute value. It basically gives you the value of the distance from 0 that the number is, for example abs(7) is 7 (its 7 away from 0) but abs(-14) is 14, because even though its negative its still 14 away from 0.  smile

Sin, cos and tan (and atan, asin, acos etc) are trig functions. AtomicBawm3 has an excellent tutorial on these functions which I highly recommend!

Last edited by Prestige (2012-08-05 18:06:53)


"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-08-05 22:21:13

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

Re: ...umm what does this mean?

Prestige wrote:

There is a full list on the Scratch wiki.

Abs means absolute value. It basically gives you the value of the distance from 0 that the number is, for example abs(7) is 7 (its 7 away from 0) but abs(-14) is 14, because even though its negative its still 14 away from 0.  smile

Sin, cos and tan (and atan, asin, acos etc) are trig functions. AtomicBawm3 has an excellent tutorial on these functions which I highly recommend!

Oh My Gosh!! I had a project recommended!  smile

The other ones he didn't explain are:
10^
e^
log
ln
basically, 10^ means 10 to the power of (i.e. 10^3 = 10*10*10 = 1000).  Log is the inverse of this: log(1000) = 3.  e is the natural base (approx. 2.718) and ln is the inverse of e^.


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

Offline

 

Board footer