Curve fitting using python
Objective: For Cubic ploynomial #Curve fitting #importing libraries import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit #polynomial used in the program def function(t,a,b,c,d): return a*pow(t,3)+b*pow(t,2)+c*t+d #reads the file and returns the values of the temperature and specific…