News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by cpburns2009 on Tuesday March 06, 2018 @11:56AM (#16530045)
Just in case you or someone else doesn't know what soh-cah-toa represents:

- Soh: sin θ = o/h

- Cah: cos θ = a/h

- Toa: tan θ = o/a

Where "θ" is the angle, "o" is the side opposite of the angle, "a" is the side adjacent to the angle, and "h" is the hypotenuse.

Or for the visually inclined:

         +
        /|
     h / |
      /  | o
     /θ  |
    +----+
       a

There are no comments on this comment yet.