summaryrefslogtreecommitdiff
path: root/3689/CH5/EX5.1/5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH5/EX5.1/5_1.sce')
-rw-r--r--3689/CH5/EX5.1/5_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3689/CH5/EX5.1/5_1.sce b/3689/CH5/EX5.1/5_1.sce
new file mode 100644
index 000000000..37b992a13
--- /dev/null
+++ b/3689/CH5/EX5.1/5_1.sce
@@ -0,0 +1,14 @@
+////Variable Declaration
+Th = 500.
+Tc = 200. //Temeperatures IN Which reversible heat engine works, K
+q = 1000. //Heat absorbed by heat engine, J
+
+//Calcualtions
+eps = 1.-Tc/Th
+w = eps*q
+
+//Results
+printf("\n Efficiency of heat engine is %4.3f",eps)
+
+printf("\n Work done by heat engine is %4.1f J",w)
+