summaryrefslogtreecommitdiff
path: root/1571/CH8/EX8.19/Chapter8_Example19.sce
diff options
context:
space:
mode:
Diffstat (limited to '1571/CH8/EX8.19/Chapter8_Example19.sce')
-rwxr-xr-x1571/CH8/EX8.19/Chapter8_Example19.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1571/CH8/EX8.19/Chapter8_Example19.sce b/1571/CH8/EX8.19/Chapter8_Example19.sce
new file mode 100755
index 000000000..f8a901aeb
--- /dev/null
+++ b/1571/CH8/EX8.19/Chapter8_Example19.sce
@@ -0,0 +1,14 @@
+clc
+clear
+
+//INPUT
+p1=8;//intial pressure in cm of hg
+p2=6;//final pressure in cm of hg
+v1=1000;//intial volume in cc
+v2=1190;//final volume in cc
+
+//CALCULATIONS
+y=log(p1/p2)/log(v2/v1);//coefficient of expansion
+
+//OUTPUT
+mprintf('the coefficent of expansion is %3.2f',y)