Question: Solve the following using matlab Question 3 The data for density of nitrogen gas versus temperature are given in the following table. Use first through
Solve the following using matlab

Question 3 The data for density of nitrogen gas versus temperature are given in the following table. Use first through third order polynomials to estimate the density at a temperature of 330 K. T, K 200 250 300 350 400 450 Density, 1.708 1.367 1.139 0.967 0.854 0.759 kg/m3 Note: work your problem with a loop in which you vary tne order from 1 to 3 along with logic to print out the results in the following manner: The estimated value of density using a 1st order polynomial is x.xxx kg/cubic meter The estimated value of density using a 2nd order polynomial is x.xxx kg/cubic meter The estimated value of density using a 3rd order polynomial is x.xxx kg/cubic meter The estimated value of density using a 3th order polynomial is x.xxx kg/cubic meter The estimated value of density using a 5th order polynomial is x.xxx kg/cubic meter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
