44
Solving Fizz Buzz with Cosines
(susam.net)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
This is silly, and not in an interesting way.
There's an argument to be made that a continuous function is better than a piecewise function when coming at things mathematically, so in that sense it's at least somewhat interesting.
Sure, in computer science where discrete mathematics is king and the modulus operator is ubiquitous, a cosine representation is entirely unnecessary, but from a recreational mathematical angle, it's a fun distraction.
And it's not like cosine interpolations are useless in a broader sense. They've contributed much to computer graphics.