diff options
Diffstat (limited to '1571/CH8/EX8.1/Chapter8_Example1.sce')
-rwxr-xr-x | 1571/CH8/EX8.1/Chapter8_Example1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1571/CH8/EX8.1/Chapter8_Example1.sce b/1571/CH8/EX8.1/Chapter8_Example1.sce new file mode 100755 index 000000000..380272661 --- /dev/null +++ b/1571/CH8/EX8.1/Chapter8_Example1.sce @@ -0,0 +1,14 @@ +clc
+clear
+
+//INPUT
+l=80;//latent heat of fusion in cal
+j=4.2*10^7;//joules constant in ergs/cal
+w=-0.092*10^6;//work done in changing phase change in ergs
+
+//CALCULATIONS
+q=l*j;//heat added in ergs
+du=q-w;//internal energy in ergs
+
+//OUTPUT
+mprintf('the change in internal energy is %3.2f ergs',du)
|