fitting data using by sagemath