For the fun: Same problem addressed in several languages, read the paper here.
It is about matrix and systems of equations resolution, curve smoothing, etc.
Done in C, Java, Processing, Scala, Kotlin, Python, JavaScript, Groovy, Go, Clojure (in progress), ...