Curve fitting for a given data using python
Objective: Objective: To write a code to fit a linear and cubic polynomial for the Cp data Program: #import the necessary moddules or libraries. import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit #define the function to read the notepad data file def read_file(): temperature = [] cp = [] for line…