Plot the polynomial y = O.lx5 -0.2x4-x3 + 5x2 -41.5x + 235 in the domain -6 :5:x :5:6 . First create a vector for x, next use the polyval function to calculate y, and then use the plot function.
Read more
Table of Contents
Textbook Solutions for MATLAB: An Introduction with Applications
Question
The ideal gas equation relates the volume, pressure, temperature, and thequantity of a gas by:V = nRTpwhere Vis the volume in liters, P is the pressure in atm, Tis the temperature inkelvins, n is the number of moles, and R is the gas constant.An experiment is conducted for determining the value of the gas constantR. In the experiment, 0.05 mol of gas is compressed to different volumes byapplying pressure to the gas. At each volume, the pressure and temperature ofthe gas are recorded. Using the data given below, determineR by plotting Vversus TIP and fitting the data points with a linear equation.V (L) 0.75 0.65 0.55 0.45 0.35T (C) 25 37 45 56 65P (atm) 1.63 1.96 2.37 3.00 3.96
Solution
The first step in solving 8 problem number 33 trying to solve the problem we have to refer to the textbook question: The ideal gas equation relates the volume, pressure, temperature, and thequantity of a gas by:V = nRTpwhere Vis the volume in liters, P is the pressure in atm, Tis the temperature inkelvins, n is the number of moles, and R is the gas constant.An experiment is conducted for determining the value of the gas constantR. In the experiment, 0.05 mol of gas is compressed to different volumes byapplying pressure to the gas. At each volume, the pressure and temperature ofthe gas are recorded. Using the data given below, determineR by plotting Vversus TIP and fitting the data points with a linear equation.V (L) 0.75 0.65 0.55 0.45 0.35T (C) 25 37 45 56 65P (atm) 1.63 1.96 2.37 3.00 3.96
From the textbook chapter Polynomials,
Curve Fitting, and
Interpolation you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution