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 /2510/CH27/EX27.12/Ex27_12.sce | |
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 '2510/CH27/EX27.12/Ex27_12.sce')
-rwxr-xr-x | 2510/CH27/EX27.12/Ex27_12.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2510/CH27/EX27.12/Ex27_12.sce b/2510/CH27/EX27.12/Ex27_12.sce new file mode 100755 index 000000000..fbd3ef295 --- /dev/null +++ b/2510/CH27/EX27.12/Ex27_12.sce @@ -0,0 +1,24 @@ +//Variable declaration: +TH = 500 //Hot stream temperature at exchanger 1 ( F) +tc = 100 //Cold stream temperature at exchanger 2 ( F) +A = 10 //Constant A +B1 = 100000 //Constant B1 +B2 = 4000 //Constant B2 +B3 = 400000 //Constant B3 + +//Calculations: +//It forms equation fo form t^2 - t(Th-tc) +tcTH +B/A +t1 = roots([1, -(TH+tc),(tc*TH + B1/A) ]); //Roots +tmax1 = TH - sqrt(B1/A) //Upon maximising profit +t2 = roots([1, -(TH+tc),(tc*TH + B2/A) ]); //Roots +tmax2 = TH - sqrt(B2/A) //Upon maximising profit +t3 = roots([1, -(TH+tc),(tc*TH + B3/A) ]); //Roots +tmax3 = TH - sqrt(B3/A) //Upon maximising profit + +//Results: +printf("tBE for case 1: %.0f F %.0f F",t1(1),t1(2)) +printf("tmax1: %.0f F",tmax1) +printf("tBE for case 2: %.0f F %.0f F",t2(1),t2(2)) +printf("tmax1: %.0f F",tmax2) +printf("tBE for case 1: %.0f F %.0f F",t3(1),t3(2)) +printf("tmax1 : %.0f F",tmax3) |