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.6/Example5_6.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.6/Example5_6.sce')
-rwxr-xr-x | 647/CH5/EX5.6/Example5_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/647/CH5/EX5.6/Example5_6.sce b/647/CH5/EX5.6/Example5_6.sce new file mode 100755 index 000000000..566db3e35 --- /dev/null +++ b/647/CH5/EX5.6/Example5_6.sce @@ -0,0 +1,26 @@ +clear;
+clc;
+
+// Example: 5.6
+// Page: 153
+
+printf("Example: 5.6 - Page: 153\n\n");
+
+// Solution
+
+//*****Data*****//
+W = 5;// [hp]
+Q = 7000;// [J/s]
+Th = 400 + 273;// [K]
+Tl = 24 + 273;// [K]
+//*************//
+
+W = 5*745.7;// [W]
+thermal_eta = W/Q;
+theoretical_eta = (Th - Tl)/Th;
+
+if theoretical_eta <= thermal_eta
+ printf("Claim is Valid");
+else
+ printf("Claim is not Valid");
+end
\ No newline at end of file |