summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.25
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1922/CH4/EX4.25
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 '1922/CH4/EX4.25')
-rwxr-xr-x1922/CH4/EX4.25/4_25.sce14
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)
+