summaryrefslogtreecommitdiff
path: root/2006/CH6/EX6.18
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2006/CH6/EX6.18
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/CH6/EX6.18')
-rwxr-xr-x2006/CH6/EX6.18/ex6_18.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/2006/CH6/EX6.18/ex6_18.sce b/2006/CH6/EX6.18/ex6_18.sce
new file mode 100755
index 000000000..5384b8060
--- /dev/null
+++ b/2006/CH6/EX6.18/ex6_18.sce
@@ -0,0 +1,9 @@
+clc;
+TA=323;// Temperature at section A in kelvin
+PA=125; // Pressure at section A in kPa
+TB=287;// Temperature at section B in kelvin
+PB=100; // Pressure at section B in kPa
+Cpo=1.0035; // Specific heat at constant pressure in kJ/kg K
+R=0.287; // characteristic gas constant of air in kJ/kg K
+SBA=(Cpo*log (TB/TA))-(R*log (PB/PA)); // Change in entropy
+disp("Hence SA>SB. Therefore B to A","kJ/kg",SBA,"Change in entropy from B to A =");