Math engine developed in Scala for academic purposes