summaryrefslogtreecommitdiff
path: root/1571/CH9/EX9.3
diff options
context:
space:
mode:
Diffstat (limited to '1571/CH9/EX9.3')
-rwxr-xr-x1571/CH9/EX9.3/Chapter9_Example3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1571/CH9/EX9.3/Chapter9_Example3.sce b/1571/CH9/EX9.3/Chapter9_Example3.sce
new file mode 100755
index 000000000..a0c8f51d5
--- /dev/null
+++ b/1571/CH9/EX9.3/Chapter9_Example3.sce
@@ -0,0 +1,14 @@
+clc
+clear
+
+//INPUT
+t1=90;//temperature of the oxygen boils in K
+t2=20;//temperature of the liquid hydrogen in K
+t3=300;//temperature of the sink in K
+
+//CALCULATIONS
+n=(t1-t2)/t1;//efficiency of the engine
+t4=t3/(1-n);//temperature of the source in K
+
+//OUTPUT
+mprintf('the efficiency of the engine is %3.2f \n the temperature of the source is %3.2f K',n,t4)