Code to fit a linear and cubic polynomial (curve Fit)
Objective: Aim To write code to fit a linear and cubic polynomial for the Cp data. And plot the linear and cubic fit curves along with the raw data points. Introduction Curve FittingCurve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to…