diff options
Diffstat (limited to '1571/CH8/EX8.18')
-rwxr-xr-x | 1571/CH8/EX8.18/Chapter8_Example18.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1571/CH8/EX8.18/Chapter8_Example18.sce b/1571/CH8/EX8.18/Chapter8_Example18.sce new file mode 100755 index 000000000..e4d6693d4 --- /dev/null +++ b/1571/CH8/EX8.18/Chapter8_Example18.sce @@ -0,0 +1,13 @@ +clc
+clear
+
+//INPUT
+dv=10^(-3);//ratio of initial and final volume
+t1=10^5;//initial temperature in K
+y=1.66;//coefficient of expansion
+
+//CALCULATIONS
+t2=t1*(dv)^(y-1);//final temperature in K
+
+//OUTPUT
+mprintf('final temperature of the gas is %3.2f K',t2)
|