curve fitting for linear polynomial
Objective: As we can see that a linear polunomial is y=mx+b whereas a quadratic polynomial is ax^2+bx+c=0and also a cubic equation is y=ax3+bx2+cx+d=0hereby , i am solving for linear polynomialwith equation y=mx+bin this the main command used is polyfit(temp,cp,order)so this basically help us show the variationsi…