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.14/25_14.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 1427/CH25/EX25.14/25_14.sce (limited to '1427/CH25/EX25.14') diff --git a/1427/CH25/EX25.14/25_14.sce b/1427/CH25/EX25.14/25_14.sce new file mode 100644 index 000000000..49b5f7482 --- /dev/null +++ b/1427/CH25/EX25.14/25_14.sce @@ -0,0 +1,13 @@ +//ques-25.14 +//Calculating pressure for ammonia gas using ideal gas equation and van der Waals equation +clc +n=0.6;//moles of NH3 +V=3;//volume (in L) +T=273+25;//temperature (in K) +a=4.17;//(in L^2 atm/mol^2) +b=0.0371;//(in L/mol) +//Van der Waal's +P1=(n*0.0821*T)/(V-n*b)-(a*n^2)/V^2; +//Ideal Gas' +P2=(n*0.0821*T)/V; +printf("The value of pressure according to ideal gas equation is %.3f atm and according to van der Waals equation is %.3f atm.",P2,P1); -- cgit