summaryrefslogtreecommitdiff
path: root/1571/CH10/EX10.2/Chapter10_Example2.sce
blob: 3a0919a8a55609ed551d977e58e6b97375c8a04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear

//INPUT
t=295;//temperature of water in K
dp=10^6;//cahnge in pressure in dyne/sq.cm
j=4.2*10^7;//joules constant in ergs/cal

//CALCULATIONS
dc=-t*10^-5*dp/j;//change in specific heat

//OUTPUT
mprintf('the change in specific heat is %3.7f cal/degree',dc)