summaryrefslogtreecommitdiff
path: root/167/CH12/EX12.2/ex2.sce
blob: 5157361d7c04a59c5c0922e11652a0c230c9203e (plain)
1
2
3
4
5
6
7
8
9
10
11
//example 2
//Total Differential versus Partial Differential
clear
clc
R=0.287 //Universal gas constant kPa-m3/kg-K
v=(0.86+0.87)/2 //average value m^3/kg
T=(300+302)/2 //average temp. in kelvins
dT=302-300 //change in tep. in K
dv=0.87-0.86 //change in volume in m^3/kg
dP=R*dT/v-R*T*dv/v^2 //Change in the pressure in kPa
printf("\n Hence, the change in the pressure of air is = %.3f kPa. \n",dP);