curve fit
Objective: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit #curve fit function def func(t,a,b,c,d,e): return a*pow(t,4)+b*pow(t,3)+c*pow(t,2)+d*t+e #reading thermodynamic data file def read_file(): temperature=[] cp=[] for line in open(\'data\',\'r\'): values=line.split(\',\') temperature.append(float(values[0]))…