From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1427/CH25/EX25.17/25_17.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 1427/CH25/EX25.17/25_17.sce (limited to '1427/CH25/EX25.17/25_17.sce') diff --git a/1427/CH25/EX25.17/25_17.sce b/1427/CH25/EX25.17/25_17.sce new file mode 100644 index 000000000..771787855 --- /dev/null +++ b/1427/CH25/EX25.17/25_17.sce @@ -0,0 +1,16 @@ +//ques-25.17 +//Calculating pressure for carbon dioxide using ideal gas equation and van der Waals equation +clc +V=8;//volume (in L) +m=88;//mass of CO2 (in g) +M=44;//molar mass of CO2 (in g/mol) +T=273+27;//temperature (in K) +a=3.6;//(in L^2 atm/mol^2) +b=0.043;//(in L/mol) +R=0.0821;//(in L atm/K/mol) +n=m/M;//moles of CO2 +//Ideal Gas equation +P1=(n*R*T)/V; +//Van der Waals equation +P2=(n*R*T)/(V-n*b)-(a*n^2)/V^2; +printf("The pressure for carbon dioxide using ideal gas equation is %.2f atm and using van der Waals equation is %.3f atm.",P1,P2); -- cgit