summaryrefslogtreecommitdiff
path: root/3428/CH21/EX14.21.15
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3428/CH21/EX14.21.15
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '3428/CH21/EX14.21.15')
-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)')