summaryrefslogtreecommitdiff
path: root/647/CH10/EX10.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH10/EX10.9
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 '647/CH10/EX10.9')
-rwxr-xr-x647/CH10/EX10.9/Example10_9.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/647/CH10/EX10.9/Example10_9.sce b/647/CH10/EX10.9/Example10_9.sce
new file mode 100755
index 000000000..610d9271a
--- /dev/null
+++ b/647/CH10/EX10.9/Example10_9.sce
@@ -0,0 +1,25 @@
+clear;
+clc;
+
+// Example: 10.9
+// Page: 412
+
+printf("Example: 10.9 - Page: 412\n\n");
+
+// Solution
+
+//*****Data******//
+x1 = 0.42;
+x2 = 0.58;
+P = 760;// [mm of Hg]
+P1sat = 786;// [mm of Hg]
+P2sat = 551;// [mm of Hg]
+//***************//
+
+gama1 = P/P1sat;
+gama2 = P/P2sat;
+A = log(gama1)*(1 + (x2*log(gama2))/(x1*log(gama1)))^2;
+B = log(gama2)*(1 + (x1*log(gama1))/(x2*log(gama2)))^2;
+printf("Van Laar Constants\n");
+printf("A = %.3f\n",A);
+printf("B = %.3f\n",B); \ No newline at end of file