summaryrefslogtreecommitdiff
path: root/632/CH7/EX7.2/example7_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /632/CH7/EX7.2/example7_2.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '632/CH7/EX7.2/example7_2.sce')
-rwxr-xr-x632/CH7/EX7.2/example7_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/632/CH7/EX7.2/example7_2.sce b/632/CH7/EX7.2/example7_2.sce
new file mode 100755
index 000000000..a293d4366
--- /dev/null
+++ b/632/CH7/EX7.2/example7_2.sce
@@ -0,0 +1,16 @@
+//clc()
+P1 = 100;//kPa ( Vapour pressure of liq A )
+P2 = 60;//kPa ( Vapour pressure of liq B )
+T = 320;//K
+//Pa = xa * P1 = 100 * xa
+//Pa = xb * P2 = 60 * xb
+//P = xa * P1 + ( 1 - xa )* P2
+// = 100xa + ( 1 - xa )* 60
+// = 60 + 40*xa
+//ya = Pa / P
+//0.5 = 100*xa / ( 60 + 40 * xa)
+xa = 60 * 0.5 / (100 - 20);
+Per1 = xa * 100;
+disp("%",Per1,"(a)Percentage of A in liquid = ")
+Ptotal = 60 + 40 * xa;
+disp("kPa",Ptotal,"(b)Total pressure of the vapour = ") \ No newline at end of file