summaryrefslogtreecommitdiff
path: root/2006/CH10/EX10.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2006/CH10/EX10.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2006/CH10/EX10.1')
-rwxr-xr-x2006/CH10/EX10.1/ex10_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/2006/CH10/EX10.1/ex10_1.sce b/2006/CH10/EX10.1/ex10_1.sce
new file mode 100755
index 000000000..fde02f7dc
--- /dev/null
+++ b/2006/CH10/EX10.1/ex10_1.sce
@@ -0,0 +1,10 @@
+clc;
+m=100; // Mass of water in kg
+T0=90; // Initial temperature of water in degree celcius
+T=30; // temperature of Surroundings in degree celcius
+C=4.1868; // Specific heat in kJ/kg K
+AE=m*C*((T0-T)-(T+273)*log ((T0+273)/(T+273))); // Available energy
+Q=m*C*(T0-T); // Heat supplied
+UE=Q-AE; // Unavailable energy
+disp ("kJ",AE,"Available energy =");
+disp ("kJ",UE,"Unavailable energy = ","kJ",Q,"Heat supplied = ");