summaryrefslogtreecommitdiff
path: root/3428/CH21/EX14.21.14/Ex14_21_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '3428/CH21/EX14.21.14/Ex14_21_14.sce')
-rw-r--r--3428/CH21/EX14.21.14/Ex14_21_14.sce12
1 files changed, 6 insertions, 6 deletions
diff --git a/3428/CH21/EX14.21.14/Ex14_21_14.sce b/3428/CH21/EX14.21.14/Ex14_21_14.sce
index 7cf843fe6..f1a7c6028 100644
--- a/3428/CH21/EX14.21.14/Ex14_21_14.sce
+++ b/3428/CH21/EX14.21.14/Ex14_21_14.sce
@@ -2,11 +2,11 @@
//To calculate the pressure exerted using the Vanderwalls equation.
clc;
//(P+((a*n^2)/V^2)*(V-(n*b))=n*R*T
-n=10
-R=8.314
-T=298
-V=25*10^-3
-b=0.037*10^-3
-a=0.417
+n=10 //moles
+R=8.314 //Nmk^-1mol^-1
+T=298 //K
+V=25*10^-3 //m^3
+b=0.037*10^-3 //m^3mol^-1
+a=0.417 //Nm^4mol^-2
P=((n*R*T)/(V-(n*b))-((a*n^2)/(V^2)))
disp(P,'Required pressure(Nm^-2)')