fitting data using by sagemath(edited)