summaryrefslogtreecommitdiff
path: root/3845/CH13/EX13.6/Ex13_6.sce
blob: 344ad031d0854bfdbe382008f561be2055b2454c (plain)
1
2
3
4
5
6
7
8
9
10
//Example 13.6
T_0=18;//Initial temperature (C)
T_0=T_0+273;//Initial temperature (K)
T_f=35;//Final temperature (C)
T_f=T_f+273;//Final temperature (K)
P_0=7*10^5;//Initial pressure (Pa)
P_f=P_0*T_f/T_0;//Final pressure (after derivation)(Pa)
printf('Pressure after temperature rise = %0.2e Pa',P_f)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest