summaryrefslogtreecommitdiff
path: root/858/CH1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /858/CH1
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 '858/CH1')
-rwxr-xr-x858/CH1/EX1.9/example_9.sce48
1 files changed, 24 insertions, 24 deletions
diff --git a/858/CH1/EX1.9/example_9.sce b/858/CH1/EX1.9/example_9.sce
index 548af9bf0..0d82811af 100755
--- a/858/CH1/EX1.9/example_9.sce
+++ b/858/CH1/EX1.9/example_9.sce
@@ -1,24 +1,24 @@
-clc
-clear
-printf('example 1.9 page number 30\n\n')
-
-//to find equilibrium vapor liquid composition
-p0b = 385 //vapor pressue of benzene at 60 degree C in torr
-p0t=140 //vapor pressue of toluene at 60 degree C in torr
-xb=0.4;
-xt=0.6;
-
-pb=p0b*xb;
-pt=p0t*xt;
-P=pb+pt;
-
-printf("total pressure = %f torr\n\n",P)
-
-yb=pb/P;
-yt=pt/P;
-printf("vapor composition of benzene = %f \n vapor composition of toluene = %f\n\n",yb,yt)
-
-//for liquid boiling at 90 degree C and 760 torr, liquid phase composition
-//x=(760-408)/(1013-408);
-(1013*x)+(408*(1-x))==760;
-printf("mole fraction of benzene in liquid mixture = %f \n mole fraction of toluene in liquid mixture= %f",x,1-x)
+clc
+clear
+printf('example 1.9 page number 30\n\n')
+
+//to find equilibrium vapor liquid composition
+p0b = 385 //vapor pressue of benzene at 60 degree C in torr
+p0t=140 //vapor pressue of toluene at 60 degree C in torr
+xb=0.4;
+xt=0.6;
+
+pb=p0b*xb;
+pt=p0t*xt;
+P=pb+pt;
+
+printf("total pressure = %f torr\n\n",P)
+
+yb=pb/P;
+yt=pt/P;
+printf("vapor composition of benzene = %f \n vapor composition of toluene = %f\n\n",yb,yt)
+
+//for liquid boiling at 90 degree C and 760 torr, liquid phase composition
+x=(760-408)/(1013-408);
+
+printf("mole fraction of benzene in liquid mixture = %f \n mole fraction of toluene in liquid mixture= %f",x,1-x) \ No newline at end of file