summaryrefslogtreecommitdiff
path: root/858/CH5/EX5.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /858/CH5/EX5.16
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 '858/CH5/EX5.16')
-rwxr-xr-x858/CH5/EX5.16/example_16.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/858/CH5/EX5.16/example_16.sce b/858/CH5/EX5.16/example_16.sce
new file mode 100755
index 000000000..1ff974f78
--- /dev/null
+++ b/858/CH5/EX5.16/example_16.sce
@@ -0,0 +1,22 @@
+clc
+clear
+printf("example 5.16 page number 208\n\n")
+
+//to find the amount of liquid and vapor leaving and outlet concentration
+//we have two linear equations in L and V so we will write them in form of a matrix and then solve using principles of linear algebra
+
+b1 = 6000*125.79+3187.56*2691.5-3187.56*461.30; //data from previous problem
+b2 = 6000;
+A = [419.04 2676.1;1 1];
+
+b = [b1;b2];
+x = A\b;
+L = x(1);
+V = x(2);
+
+printf("L = %f kg/hr\nV = %f kg/hr",L,V)
+
+F = 6000 //in kg/hr
+xF = 0.01;
+xL = F*xF/L;
+printf("\n\npercentage increase in outlet concentration = %f",xL*100)