answered 14 years ago
Have a look at find_fit on the page http://www.sagemath.org/doc/reference/sage/numerical/optimize.html