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 /1922/CH4/EX4.25 | |
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 '1922/CH4/EX4.25')
-rwxr-xr-x | 1922/CH4/EX4.25/4_25.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1922/CH4/EX4.25/4_25.sce b/1922/CH4/EX4.25/4_25.sce new file mode 100755 index 000000000..9f45f0776 --- /dev/null +++ b/1922/CH4/EX4.25/4_25.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Initialization of variables
+tin=298 //K
+tout=273 //K
+tout2=308 //K
+tin2=294 //K
+//calculations
+eta1=(tin-tout)/tin
+eta2=abs((tin2-tout2)/tin2)
+//results
+printf("Efficiency in case 1 = %.3f",eta1)
+printf("\n efficiency in case 2 = %.3f",eta2)
+
|