by esafak 6 hours ago

https://en.wikipedia.org/wiki/Tide-predicting_machine

Basically, a summation of sinusoids.