summaryrefslogtreecommitdiff
path: root/1571/CH8/EX8.15/Chapter8_Example15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1571/CH8/EX8.15/Chapter8_Example15.sce')
-rwxr-xr-x1571/CH8/EX8.15/Chapter8_Example15.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1571/CH8/EX8.15/Chapter8_Example15.sce b/1571/CH8/EX8.15/Chapter8_Example15.sce
new file mode 100755
index 000000000..9abb0e9af
--- /dev/null
+++ b/1571/CH8/EX8.15/Chapter8_Example15.sce
@@ -0,0 +1,14 @@
+clc
+clear
+
+//INPUT
+t=303;//temperature of the one mole of the argon in K
+v1=1;//intial volume in litres
+v2=10;//final volume in litres
+r=8.31*10^7;//universal gas constant in ergs/K.mol
+
+//CALCULATIONS
+w=r*t*log(v2/v1);//work done in isothermal expansion in ergs
+
+//OUTPUT
+mprintf('the work done in isothermal expansion is %3.2f ergs',w)