diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /542/CH11/EX11.19/Example_11_19.sci | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '542/CH11/EX11.19/Example_11_19.sci')
-rwxr-xr-x | 542/CH11/EX11.19/Example_11_19.sci | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/542/CH11/EX11.19/Example_11_19.sci b/542/CH11/EX11.19/Example_11_19.sci new file mode 100755 index 000000000..a78fb62cc --- /dev/null +++ b/542/CH11/EX11.19/Example_11_19.sci @@ -0,0 +1,40 @@ +clear all;
+clc;
+printf("\n Example 11.19");
+//Data from fig. 11.42
+a = [0 0.02 0.04 0.06 0.08 0.1 0.2 0.4 0.6 0.8 1.0];
+b = [0.75 0.62 0.60 0.57 0.55 0.52 0.45 0.30 0.18 0.09 0];
+//a = (R-Rm)/(R+1)
+//b = [(n+1)-(nm+1)]/(n+2)
+R = [0.92 1.08 1.25 1.75 2.5 3.5 5.0 7.0 9.0];
+n = [28.6 22.8 16.9 13.5 11.7 10.5 9.8 9.2 8.95];
+plot(n,R);
+xtitle("Plot of R vs n","n","R");
+printf("\n Derivative calculated from the graph");
+d = [110.0 34.9 9.8 3.8 1.7 0.6 0.4 0.2 0.05];
+i=1;
+while i <=9
+ s = R(i)+1 - (n(i)+7.72)/d(i);
+ if s <=0.0001 then
+ Ropt = R(i);
+ printf("\n Ropt = %.2f",Ropt);
+ break;
+ end
+ i=i+1;
+end
+printf("\n R is approximately %.1f percent of the minimum reflux condition",1.25/0.866666666*100);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|