• JDubbleu@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      As one of the resident smart kids who went into CompSci and now works as a software engineer, I haven’t touched any of this for a hot minute. I mainly use it for 3D print designs once in a blue moon.

      • jol@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Of course it depends, but for example, it CSS esing functions are based on polinomial or sin waves. If you ever want to understand or perhaps implement and easing function, trigonometry has your back.

    • Ragnarok314159@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      arrow-down
      3
      ·
      2 months ago

      Nah. I was labeled a dumb kid in high school because I had to work 40 hours a week. I went back to college as an adult and now have a masters in mech Eng.

      Went to my high school reunion and the smart kids were largely abject failures. They never really struggled until college, then mostly failed out. I felt bad for them, but not too bad since most of them bullied me.

      • HubertManne@kbin.social
        link
        fedilink
        arrow-up
        3
        ·
        2 months ago

        I was thinking this myself. sin, cos, tan. Have not used. I have use euler coordinates so thats something but really solve for x is the most advanced thing I have used outside of school. mmmm actually I guess some statistics like stadard deviation.

        • johannesvanderwhales@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          I recently had to do a two variable equation because I was using a recipe that called for a specific milk fat percentage by mixing cream and milk, and my cream was heavier than what it needed. That was really stretching the limits of what math I remember.

      • refalo@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        Programmer for 25 years. Only time I have ever used math more complicated than simple multiply/divide was… actually never.

        That one time when I copy/pasted a formula for linear interpolation, was still just multiplication and division. And I still have no idea how it works.

        I’ve even done OpenGL and graphics programming and still haven’t needed any algebra/trig/etc, although I don’t do complex 3D rendering or physics or anything like that.

        I wish I knew how to do cool programming stuff like draw circles and waves and stuff though, but I’ve never seen a tutorial that didn’t go WAY over my head immediately.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          2 months ago

          Drawing a circle is actually pretty simple! Say we want to draw one with:

          • radius r=5
          • center C=(0,0)
          • 1000 points

          The logic would be:

          for (let i = 0; i < 1000; i++) {
              // full circle is made up of 2 * PI angles -> calculate current loop angle
              const angle = (2 * Math.PI) * (i / 1000)
              const x = r * Math.cos(angle)
              const y = r * Math.sin(angle)
              drawPixel(x, y)
          }
          

          The circle starts being drawn at (5, 0). As y approaches -5, x gets smaller until it hits 0. Then x approaches -5 and y approaches 0, and so on.

          • Valmond@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 months ago

            That won’t work well ;-) it will draw 1000 pixels whatever the circumference!

            A good start though, for sure.

            • FooBarrington@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              2 months ago

              It’s just meant to be a simple example. If someone says other tutorials quickly go over their head, it’s not a good idea to introduce unnecessary concepts to start with.

  • halvar@lemm.ee
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    2 months ago

    Sin, Cos and Tan were gifted to us by the gods, and it’s solely your fault, if you don’t use them daily in your freetime.

  • HootinNHollerin@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    2 months ago

    I do almost everyday as a mechanical engineer. I even do the common angles in my head, which came in handy several times in situations where I’m sailing and something breaks underway etc

  • Zink@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    I just had to do some “find the angle” geometry this week to quantify some physical stuff that was going on in addition to what the software was causing.

    And by “do,” I mean scribbling some triangles to figure out what I was calculating, then throwing the numbers into an online calculator!

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Whenever I implement something based on trigonometry, I try around with the different functions until my tests give the expected results.

      I use them roughly monthly.

      • Zink@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Haha, well in my case high school geometry drew my interest and hyper focus. I will never forget the basic triangle functions/rules.

  • Captain Howdy@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    I actually really enjoyed trig class.

    I hated all math classes before it, but I had a great teacher and something about the real-life usefulness (triangulation, navigation, etc) of trig clicked for me and I enjoyed it and made an A.

    I fucking failed the shit out of statistics, and hilariously that’s the most related to my real life job, where I’m dealing with gigantic data sets daily looking for outliers/trends.

        • andros_rex@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          Diff EQ just turns into TOO MUCH FUCKING ALGEBRA at the end though. It’s never that it doesn’t make conceptual sense, it’s just they throw obnoxious integration by parts and fucking fraction decomp.

          You never mess up because you didn’t understand the problem/what you were supposed to do. You mess up because you’re supposed to accept that 1/194737 is a perfectly acceptable coefficient to have and there’s no way of telling if you dropped a sign 10 steps ago.

          • Ragnarok314159@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            ·
            2 months ago

            I had an idiot-savant professor that could do Diff EQ in his head, and didn’t understand why all of us couldn’t do it. We would all get D’s and F’s on every test. If was passed down that people have to go to the dean to curve the final grade every semester, and ever semester he would get angry at not being able to fail almost the entire class.

  • Kazumara@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    Weird, I find them rather useful. How else do you calculate angles of things?

    To check some flat-earthers I recently calculated the angle between an upright person and some skyscrapers 60 miles away.

    • lud@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      How often do you need to calculate angles? If I want to know the angle of something I usually measure it.