Discuss Scratch
- Discussion Forums
 - » Help with Scripts
 - » how to use sin and cos and tan?
        
         
- lolpakychoco55
 - 
                            
						
						
                            Scratcher
                        
						
						 
6 posts
how to use sin and cos and tan?
I don't know how to use trigonometric functions! If you can figure it out, please reply and explain it in a way a 10 year old could understand!
                        
                        
                    - legendary34678
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
how to use sin and cos and tan?
You'd be better off visiting Khan Academy or searching up a crash course in trigonometry on YouTube. I can, however, tell you that the sine, cosine, and tangent functions are useful when dealing with angles and triangles. They are also related to circles! To save you some time, here is the link to Khan Academy's trigonometry course. Hope this helps!
                        
                        
                    - zombified_coder
 - 
                            
						
						
                            Scratcher
                        
						
						 
32 posts
how to use sin and cos and tan?
you don't need them that often but here is a useful way of using them:
the first number is how fast it moves (360 is one full rotation in one second) and the second number is how far it moves (in pixels).
                        
                        
                    when green flag clickedthis will make your sprite move smoothly and and down.
forever
set y to (([sin v] of ((timer) * (360))) * (100))
end
the first number is how fast it moves (360 is one full rotation in one second) and the second number is how far it moves (in pixels).
- forumhelperman
 - 
                            
						
						
                            Scratcher
                        
						
						 
86 posts
how to use sin and cos and tan?
I don't know how to use trigonometric functions! If you can figure it out, please reply and explain it in a way a 10 year old could understand!basically, sin, cos, and tan is a function. Give it a number, it outputs another. The most common use case is for right triangles (triangles with a right angle).
These sin, cos and tan functions (and their opposite csc, sec, and cot) can be used to find out everything about a right triangle. You can give these pairs of functions a minimum of 1 angle and 1 side length to get everything about the right triangle it describes.
You've probably seen things like (sin = opposite/hypotenuse) or (cos = adjecent/hypotenuse). What does this mean?
In a right triangle, theres 3 sides - The hypotenuse (the longest one) - the adjacent (the side the angle is next to) - and the opposite (the side across from the angle). The angle is often called theta, or θ. From there, you simply plug in the certain sides and you get an output!
Its a kinda big topic, like legendary said, I would reccomend using someone else's code, or looking up a (khan academy) lesson
- lolpakychoco55
 - 
                            
						
						
                            Scratcher
                        
						
						 
6 posts
how to use sin and cos and tan?
guys! thanks!
I'm going to make a work of art out of this now!
                        
                        
                    I'm going to make a work of art out of this now!
- Discussion Forums
 - » Help with Scripts
 - 
            » how to use sin and cos and tan? 
         
            


