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 /2507/CH8/EX8.16/Ex8_16.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 '2507/CH8/EX8.16/Ex8_16.sce')
-rwxr-xr-x | 2507/CH8/EX8.16/Ex8_16.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2507/CH8/EX8.16/Ex8_16.sce b/2507/CH8/EX8.16/Ex8_16.sce new file mode 100755 index 000000000..3af524aa7 --- /dev/null +++ b/2507/CH8/EX8.16/Ex8_16.sce @@ -0,0 +1,12 @@ +clc
+clear
+printf("Example 8.16 | Page number 234 \n\n");
+//What are available and unavailable energies of Q1
+//Given data
+T1 = 500 //K
+T0 = 300 //K
+T2 = 350 //K
+W = 250 //kJ
+Q1 = 1000 //kJ
+printf("Available energy = %.1f kJ\n",(1-(T0/T1))*Q1);
+printf("Unavailable energy = %.1f kJ\n",Q1 - (1-(T0/T1))*Q1);
|