Another fun circular-math-in-code is from early IOCCC. It approximates pi by calculating the area and diameter of the circle in the code. https://www.cise.ufl.edu/~manuel/obfuscate/pi.c
Explainer: https://codeexplainer.wordpress.com/2017/08/27/underscore-pi...