From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 167/CH12/EX12.2/ex2.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 167/CH12/EX12.2/ex2.sce (limited to '167/CH12/EX12.2/ex2.sce') diff --git a/167/CH12/EX12.2/ex2.sce b/167/CH12/EX12.2/ex2.sce new file mode 100755 index 000000000..5157361d7 --- /dev/null +++ b/167/CH12/EX12.2/ex2.sce @@ -0,0 +1,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); \ No newline at end of file -- cgit