summaryrefslogtreecommitdiff
path: root/3831/CH7/EX7.1
diff options
context:
space:
mode:
Diffstat (limited to '3831/CH7/EX7.1')
-rw-r--r--3831/CH7/EX7.1/Ex7_1.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3831/CH7/EX7.1/Ex7_1.sce b/3831/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..8fc6040e4
--- /dev/null
+++ b/3831/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,9 @@
+// Example 7_1
+clc;funcprot(0);
+// Given data
+T_L=70.0;// °F
+T_H=4000.0;// °F
+
+// Solution
+n_T_max=(1-((T_L+459.67)/(T_H+459.67)))*100;// The maximum possible thermal efficiency of this engine in %
+printf('\nThe maximum possible thermal efficiency of this engine,(n_T)_max=%2.1f percentage',n_T_max);