summaryrefslogtreecommitdiff
path: root/1388/CH4/EX4.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1388/CH4/EX4.1
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 '1388/CH4/EX4.1')
-rwxr-xr-x1388/CH4/EX4.1/4_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1388/CH4/EX4.1/4_1.sce b/1388/CH4/EX4.1/4_1.sce
new file mode 100755
index 000000000..6ce80fe9a
--- /dev/null
+++ b/1388/CH4/EX4.1/4_1.sce
@@ -0,0 +1,22 @@
+clc
+//initialisation of variables
+T = 100 //C
+T1= 25 //C
+T2= 150 //C
+T3= 357 //C
+T4= 500 //C
+T5= 2000 //C
+T6= 5*10^6
+T7= 1000 //C
+//CALCULATIONS
+e= (T-T1)/(T+273)
+e1= (T2-T1)/(273+T2)
+e2= (T3-T)/(273+T3)
+e3= (T5-T4)/(T5+273)
+e4= (T6-T7)/T6
+//RESULTS
+printf (' maximum efficiency = %.2f ',e)
+printf (' \n maximum efficiency = %.2f ',e1)
+printf (' \n maximum efficiency = %.2f ',e2)
+printf (' \n maximum efficiency = %.2f ',e3)
+printf (' \n maximum efficiency = %.2f ',e4)