Curve fitting
Objective: 1.) Popt- these are the cofficients of the polynomial function and will be calculated by our code as an output. Pcov- The estimated covariance of popt. The diagonals provide the variance of the parameter estimate. To compute one standard deviation errors on the parameters use, i.e pcov…