sorry for my layman terminology, but to my understanding as a coder a function has a name, parameters, arguments and operations. if sin is the name, and its parameters are side opposite and hypotenuse, and its arguments are context dependent, what is the operation itself? am i making sense?

def sin (hypotenuse, opposite):
     ??!?!?!!?
  • I'm back on my BS 🤪@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I’m probably way too elementary for this post, but just in case someone doesn’t know about SohCahToa (pro. soh-cah-toh-ah).

    Soh

    • sin is opposite over hypotenuse

    Cah

    • cos is adjacent over hypotenuse

    Toa

    • tan is opposite over adjacent

    I made it through my college trigonometry class by just remembering that one simple pneumonic. Everything else that was taught could be derived from it.