News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by seanmcdirmid on Tuesday March 06, 2018 @10:33AM (#16529412)
When using sin and cos in graphical programming, I wish code completion for them came up in the context of a triangle and unit circle so I wouldn’t keep referring back to Wikipedia.
Re:Sin and Cos: The Programmer's Pals by Maybestring on Tuesday March 06, 2018 @12:31PM (#16530322)
If, like me, you have the graph of the functions burned into your memory, then the anti-symmetry of sin makes it's geometric interpretation easy to remember.

Sin and Cos correspond to the rejection and projection of two unit vectors. When they rotate past each other, the projection still has the same direction, but the rejection changes sign, so it must correspond to the anti-symmetric sin, not the symmetric cos.

Re:Sin and Cos: The Programmer's Pals by seanmcdirmid on Tuesday March 06, 2018 @12:34PM (#16530352)
I don't use them enough to completely internalize them, so having a reference when I do need to use them is very helpful.