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

#1 2010-06-26 16:19:54

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Abs,sqrt,sin,cos,tan, what does this all mean?

I can't figure out what these do or mean? Can someone explain this block for me?

Offline

 

#2 2010-06-26 16:27:02

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Abs,sqrt,sin,cos,tan, what does this all mean?

abs-absolute value - states the distance from 0 (easy way to remember it: Makes all negative numbers positive)
sqrt-Square root - you probably know what that is.
sin-Sine - I don't know (very complicated)
cos-Cosine - I don't know (very complicated)
tan-Tangent - I don't know (very complicated)

Last edited by coka (2010-06-26 16:27:36)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2010-06-26 16:36:13

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Abs,sqrt,sin,cos,tan, what does this all mean?

sin, cos and tan - useful for your maths exam and measuring right-angled triangles. Basically, trigonometry. Some games that use physics use these. Also fun to play with pen - make pretty images.


Converting my Scratch projects to Python!

Offline

 

#4 2010-06-26 16:36:54

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

Re: Abs,sqrt,sin,cos,tan, what does this all mean?

coka wrote:

abs-absolute value - states the distance from 0 (easy way to remember it: Makes all negative numbers positive)
sqrt-Square root - you probably know what that is.
sin-Sine - I don't know (very complicated)
cos-Cosine - I don't know (very complicated)
tan-Tangent - I don't know (very complicated)

Tangent is basically a line over a circle.

I have no idea how to get it, but I think it has to do something with the radius and diameter.

Offline

 

#5 2010-06-26 17:33:44

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Abs,sqrt,sin,cos,tan, what does this all mean?

Paddle2See made a great post a few years ago as to what their full names are: here it is.

In addition to the full names of each of the advanced mathematical functions, this post I made a while back might help explain what they actually mean.

Offline

 

#6 2010-06-27 17:12:41

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Abs,sqrt,sin,cos,tan, what does this all mean?

You can always test them out. Make aa simple application that figures the some of some number using all these methods. When I wrote out Sin and Cos results of 0-100 by 5s, I saw how they can be used to do curves. For example, change x and/or y by cos (a variable that changes like from 1 - 100) then watch a sprite follow that path while outputting the variable to the screen so you can watch it at the same time.

Last edited by Locomule (2010-06-27 17:14:05)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer