News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by threatofrain on Tuesday March 06, 2018 @10:24AM (#16529362)
What's a top alternative you've found to work aside from triangles?
Re:Sin and Cos: The Programmer's Pals by rocqua on Tuesday March 06, 2018 @10:40AM (#16529461)
Not who you responded to, but as he stated, the best method is the unit circle.

Take a circle of radius 1 around the origin. Draw a line with angle x through the origin. The point where this line intersects the circle has vertical position sin x and horizontal position cos x. Moreover, if you measure the angle in radians, x is how much of the unit circle your angle covers.

This also immediately makes the identity (sin x)^2 + (cos x)^2 = 1 obvious.

https://en.wikipedia.org/wiki/Unit_circle

Re:Sin and Cos: The Programmer's Pals by meuk on Tuesday March 06, 2018 @10:34AM (#16529418)
For me it was associating (sin(r), cos(r)) with a direction (on the unit circle), instead of with a triangle. After that, the relation with a triangle where the longest side has unit length is obvious.
Re:Sin and Cos: The Programmer's Pals by hexane360 on Tuesday March 06, 2018 @12:44PM (#16530437)
Don't you mean (cos(r), sin(r))?

I guess your method works if your angle starts at north and increases clockwise.