If you have a few spare CPU cycles, a hybrid approximation could start with a sparse lookup table of values as the initial guess for a few rounds of a numerical approximation technique. Or you just store the first few coefficients of a polynomial approximation (as in the OP's work).
Neural nets can be useful when you have samples of a function but no idea how to approximate it, but that's not the case here.
Training a neural net to calculate sines is like the math equivalent of using an LLM to reverse a string. Sure, you *can*, but the idea only makes sense if you don't understand how fundamentally solvable the problem is with a more direct approach.
It's always worth looking if mathematicians already have a solution to a problem before reaching for AI/ML techniques. Unfortunately, a lot of effort is probably being spent these days programming some kind of AI/ML to solve problems that have a known, efficient, maybe even proven optimal solution that developers just don't know about.
Input: Please reverse the string "Dlrow, Olleh!"
Output (chatgpt): Sure! The reversed string is "!helleO ,worldD"
Output (liquid): The reversed string is "!ehT, Llord!"
Output (llama): The reversed string is "Hellol, Wlod."
Output (phi): The reversed string of "Dlrow, Olleh!" is "!HoleL ,owrdL" or "Hello, World!" backwards.
Output (qwen): The reversed string of "Dlrow, Olleh!" is "!hlelo ,wolrD".
Honestly some of them are doing better than I expected.The main strength of a neural network comes into play when there's a lot of different inputs, not just a handful. For the simpler cases like sin(x) we have other tools like the one posted here.
[1]: https://www.youtube.com/watch?v=FBpPjjhJGhk But what is a neural network REALLY?