News for hackers. Stuff that matters.
Re:Cosine Implementation in C by sillysaurusx on Friday March 31, 2023 @01:28AM (#35382984)
I don’t think this would help anyone’s imposter syndrome. Taking hardcore math line by line will yield confusion.

A better approach might be to learn how cosine can be approximated with a Taylor expansion, then realize this is just an optimized version of that. (Even if it’s a different algorithm, it’s still an approximation algorithm, which is the point.)

Staring at math constants won’t get you that insight.

There are no comments on this comment yet.