follow-along up to 1h40m of https://www.youtube.com/watch?v=kCc8FmEb1nY.
implementation of elementary functions (e.g. sin x) via a chip boils down to finding some g(x) ≈ sin(x) such that you can implement g(x) using available machine instructions.