diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /647/CH5/EX5.2/Example5_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '647/CH5/EX5.2/Example5_2.sce')
-rwxr-xr-x | 647/CH5/EX5.2/Example5_2.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/647/CH5/EX5.2/Example5_2.sce b/647/CH5/EX5.2/Example5_2.sce new file mode 100755 index 000000000..71efe00d9 --- /dev/null +++ b/647/CH5/EX5.2/Example5_2.sce @@ -0,0 +1,30 @@ +clear;
+clc;
+
+// Example: 5.2
+// Page: 150
+
+printf("Example: 5.2 - Page: 150\n\n");
+
+// Solution
+
+//*****Data*****//
+Th = 810;// [K]
+Tl = 300;// [K]
+//*************//
+
+// Solution (a)
+eta = (Th - Tl)/Th;
+printf("(a) The efficiency of the heat engine is %.1f %%\n",eta*100);
+
+// Solution (b)
+Th = 1366;// [K]
+Tl = 300;// [K]
+eta = (Th - Tl)/Th;
+printf("(b) The efficiency of the heat engine is %.1f %%\n",eta*100);
+
+// Solution (c)
+Th = 810;// [K]
+Tl = 344;// [K]
+eta = (Th - Tl)/Th;
+printf("(c) The efficiency of the heat engine is %.1f %%\n",eta*100);
\ No newline at end of file |