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):
     ??!?!?!!?
  • dmention7@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    This is kind of a weirdly phrased question.

    Mathematically, THE argument of the sine function is the angle in question. One definition of sine, using the sides of a right triangle is the ratio of the opposite leg to the hypotenuse of said triangle: sin(theta)=opposite/hypotenuse.