889
Trig (lemmy.world)
submitted 8 months ago by themaninblack@lemmy.world to c/memes@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Spoonbit@lemmy.ml 37 points 8 months ago

You may have used them indirectly in the compression of your image

[-] fossphi@lemm.ee 10 points 8 months ago

Fair enough, but did they use it? I always felt like focusing on statistics instead of random trig stuff for non stem people people would be more useful

[-] mindbleach@sh.itjust.works 4 points 8 months ago

Sticking with image compression, see Quite Okay Images. It treats each pixel as three numbers and expects mostly small changes. Recent pixels get hashed and can be referenced in a few bits. This is enough to compete with PNG filesizes, an order of magnitude faster, while handling each pixel exactly once.

[-] MinekPo1@lemmygrad.ml 2 points 8 months ago

though note than lossy formats , like JPEG which was used here , do use Fourier transforms , which are very intense trigonometry . IIRC PNG doesn't use trigonometry either , ~~though I'm not entirely sure~~ yup PNG uses DEFLATE after some filtering , so no sine there I believe

[-] Enkers@sh.itjust.works 3 points 8 months ago* (last edited 8 months ago)

Agreed, I use highschool level stats knowledge on a nearly daily basis, whereas the last time I did any trig was to follow along with a math video I was watching on YouTube. Trig/calc were mandatory, stats was not.

[-] Zink@programming.dev 6 points 8 months ago

And stats really should be a mainline math class in high school. It comes up in so many places, and is far too often simplified away into a binary black & white choice.

Any time something happens that was predicted to be less than 50% likely, people lose their shit. For instance, when it unexpectedly rains or the wrong person wins an election.

But it’s not even being able to run the numbers or understanding statistical significance. It’s much more basic, just understanding that probabilities and uncertainty exist and are everywhere. My favorite example is when going to the doctor. They explain that whatever you have is probably X or Y, with a small chance of Z, but Y has been going around a lot and is easy to treat, so let’s try medication A for it. Then when that gets reported to friends and family afterwards, it’s “she said I have Y and I need A to fix it.”

[-] frezik@midwest.social 1 points 8 months ago

Plus, if someone needs calculus for their major, they'll just make them take it again in college. Why build high school math around it?

[-] MinekPo1@lemmygrad.ml 1 points 8 months ago

JPEG uses a lossy form of compression based on the discrete cosine transform (DCT).

- Wikipedia - JPEG

Many modern compression schemes are more about signal processing than statistics , especially the lossy ones . IIRC 3blue1brown has a video on image compression if you want to learn about it in a visual way

this post was submitted on 19 Dec 2023
889 points (91.9% liked)

Memes

45129 readers
2291 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS