summaryrefslogtreecommitdiff
path: root/2006/CH6/EX6.11/ex6_11.sce
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.11/ex6_11.sce
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.11/ex6_11.sce')
-rwxr-xr-x2006/CH6/EX6.11/ex6_11.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/2006/CH6/EX6.11/ex6_11.sce b/2006/CH6/EX6.11/ex6_11.sce
new file mode 100755
index 000000000..187504be3
--- /dev/null
+++ b/2006/CH6/EX6.11/ex6_11.sce
@@ -0,0 +1,9 @@
+clc;
+p1=5; // Initial pressure of argon gas in bar
+T1=30; // Initial temperature of argon gas in degree celcius
+v1=1; // Initial volume of argon gas in m^3 by assumption
+v2=2*v1; // Final volume of argon gas in m^3
+R=8.3144/40; // Characteristic gas constant of argon gas in kJ/kg K
+p2=p1*(v1/v2); // Final pressure of argon gas
+delta_s= R*log (v2/v1); // change in entropy (choosing the reversible isothermal path)
+disp ("kJ/kg K",delta_s,"change in entropy (choosing the reversible isothermal path) = ","bar",p2,"Final pressure of argon gas =");