Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Questions d and e. Thank you. (matlab) 3. The ideal gas law: PV = nRT describes the relationship between pressure (P), temperature (T), volume (V),
Questions d and e. Thank you. (matlab)
3. The ideal gas law: PV = nRT describes the relationship between pressure (P), temperature (T), volume (V), and the number of moles of gas (n). The additional symbol, R, represents the ideal gas constant. In 1873, J. D. van der Waals proposed a modified version of the ideal gas law that better models the behavior of real gases over a wider range of temperature and pressure. nza P + (V-nb) = nRT In this equation the additional variables a and b represent values characteristic of individual gases. The following constants are provided: n = 2 mol a=5.536 Lbar/moi? B=0.03049 L/mol R=0.08314472 L bar/ K mol Given the above data, use both the ideal gas equation and van der Waals' equation to calculate the temperature of water vapor (steam), for the following cases. (40 pts) a. P = 220 bar, and V= 1 L b. 11 values of pressure from 0 bar to 400 bar, volume of 1 L c. pressure of 220 bar, 12 values of volume from 0.1 L to 10 L, Thus, for part (a), the pressure is 220 bar while the volume is 1 L. For part (b), the pressure is a vector of values 0, 40, 80, ... 400 bar while the volume is 1 L. For part (c), the pressure is fixed at 220 bar and the volume is a vector 0.1, 1.0, 1.9, ..... 10.0 L. Use MATLAB operators or the function linspace to efficiently create these vectors. 4. Create the following vectors efficiently. See if you can find more than 1 solution. (25 pts) (a) A= [1, 3, 5, 7, 9, ...] up to n= 10 terms. Modify your code to work for n = 100. (b) B = [1, 2, 4, 8, 16, 32, ...] up to n= 10 terms. Modify your code to work for n= 100. (c) C = [1, 0.1, 0.01, 0.001, 0.0001, ...] up to n= 10 terms. Modify your code to work for n = 20. (d) D= [1,-1, 1,-1, 1, -1, ...] up to n= 10 terms. Modify your code to work for n = 100. (e) E = [0, 1/2, 2/3, 3/4, 4/5, 5/6, ...] up to n= 10 terms. Modify your code to work for n = 100Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started