• 9 Posts
  • 211 Comments
Joined 10 months ago
cake
Cake day: July 25th, 2023

help-circle







  • OwenEverbinde@lemmy.myserv.oneto196@lemmy.blahaj.zonerule
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    5 months ago

    Plus “math skills” is one of those areas where stereotypes and self-fulfilling prophesies have incredibly influential power.

    Math is difficult for everyone, and emotional factors like, “having the confidence of yourself and your peers” are important in making it through difficulty.





  • Oddly enough, on a computer, I have not seen secant, cosecant, or cotangent.

    I have seen sin, cos, tan, arcsin, arccos, and arctan.

    Though the arc functions will only have one parameter, so if this is homework, you’ll probably be avoiding the arcs and using secant and friends

    Anyways:

    sin ( angle )

    Term In this example
    Parameter Angle is the parameter. It’s in radians, so in Java you’ll use a conversion like Math.toRadians(a) on whatever number you’re going to use as an argument
    Argument If I were to call sin(Math.PI / 4) then I would be passing the argument π / 4 to the function.
    In other words, if a parameter is a question, then an argument is an answer. If a parameter is a coin slot, than an argument is the coin you choose to insert.
    Operation An operation is practically synonymous with “function”. It is performed on inputs to arrive at an output. However, usually in code, I hear “operation” used to describe things like /, *, and +. Things that have multiple inputs and a single output, all of the same form.

    If someone is asking you, "which operation should you use in the body of function sin ( hyponetuse, opposite ) then I imagine the expected answer would be, / because

    1. / is an operation, and because
    2. opposite / hypotenuse will perform the division that yields the sine of whatever triangle those two sides belong to.

  • An algorithm is the meat of a function. It’s the “how.”

    And if you’re using someone else’s function, you won’t touch the “how” because you’ll be interacting with the “what.” (You use a function for what it does.)

    You will be creating your own algorithm by writing code, however. Because an algorithm is just a sequence of steps that, taken together, constitute an attempt at achieving an objective.

    Haus is saying all the little steps that go into approximating sine occur directly on the hardware.