Question: USING MATLAB ONLY (easy question, just please read carefully thanks!) The van der Waals equation models real-life gases and is given by [P+((n 2 a)/V

USING MATLAB ONLY (easy question, just please read carefully thanks!)

The van der Waals equation models real-life gases and is given by [P+((n2a)/V2)](Vnb)=nRT with P in atm, V in L ,T in K, and n in number of moles.

Solve the van der Waals equation to calculate the volume of 2 mol CO2at 50F (NOTE: be sure to look up conversion of Fahrenheit to Kelvin) with a pressure of 6 atm. Use R= 0.08206 (L atm)/(mol K) and the following information about CO2:a= 3.658 (L2atm)/mol2andb= 0.04286 L/mol. Use the following steps:

(a) Create an anonymous function for the van der Waals equation given the constants above. Remember to solve the equation for zero!

(b) Secondly, graph the anonymous function and the line y= 0 on the same set of axes. Note the approximate point of intersection.

(c) Using the approximate value from the point of intersection and the anonymous function you created, use the command fzero to solve for V Publish the results in Word, verifying the graph above is included.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!