Curve Fit assignment
Objective: # linear equation used for curve fit -asssignment # Cubic polynomial curve fit - assignment import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit # linear function is used def func(t,a,b,): return a*t + b # file reading def read_file(): temperature=[] cp=[] # in this for loop we made the…