summaryrefslogtreecommitdiff
path: root/1388/CH4/EX4.1/4_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1388/CH4/EX4.1/4_1.sce')
-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)