summaryrefslogtreecommitdiff
path: root/3428/CH21/EX14.21.15/Ex14_21_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '3428/CH21/EX14.21.15/Ex14_21_15.sce')
-rw-r--r--3428/CH21/EX14.21.15/Ex14_21_15.sce12
1 files changed, 6 insertions, 6 deletions
diff --git a/3428/CH21/EX14.21.15/Ex14_21_15.sce b/3428/CH21/EX14.21.15/Ex14_21_15.sce
index 8e2672cdb..56cfb492b 100644
--- a/3428/CH21/EX14.21.15/Ex14_21_15.sce
+++ b/3428/CH21/EX14.21.15/Ex14_21_15.sce
@@ -1,13 +1,13 @@
//Section-14,Example-2,Page no.-PC.30
//To calculate pressure exerted using ideal gas equation and Vanderwalls equation.
clc;
-n=5
-R=8.314
-T=300
-V=1*10^-3
+n=5 //moles
+R=8.314 //NmK^-1mol^-1
+T=300 //K
+V=1*10^-3 //m^3
P_1=((n*R*T)/V)
disp(P_1,'Required pressure using ideal gas equation(Nm^-2)')
-a=0.1378
-b=0.0318*10^-3
+a=0.1378 //Nm^4mol^-2
+b=0.0318*10^-3 //m^3mol^-1
P_2=(((n*R*T)/(V-n*b))-((a*n^2)/(V^2)))
disp(P_2,'Required pressure using vanderwalls equation(Nm^-2)')