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 /2519/CH15/EX15.4/Ex15_4.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 '2519/CH15/EX15.4/Ex15_4.sce')
-rwxr-xr-x | 2519/CH15/EX15.4/Ex15_4.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2519/CH15/EX15.4/Ex15_4.sce b/2519/CH15/EX15.4/Ex15_4.sce new file mode 100755 index 000000000..df3412d96 --- /dev/null +++ b/2519/CH15/EX15.4/Ex15_4.sce @@ -0,0 +1,22 @@ +clc
+clear
+//Initialization of variables
+dhab=-1.78
+etac=0.5
+ha=28.06
+eta=0.85
+hf=471.6
+hfg=731.6
+hd=1203.2
+dhcd=452.7
+//calculations
+dwabs=dhab/etac
+hbd=ha-dwabs
+dwcds=dhcd*eta
+dqa=hd-hbd
+etat=(dwcds+dwabs)/dqa
+eta=etat*eta
+//results
+printf("Thermal efficiency = %.1f percent",etat*100)
+printf("\n Overall efficiency = %.1f percent",eta*100)
+
|