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 --- 2510/CH5/EX5.4/Ex5_4.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2510/CH5/EX5.4/Ex5_4.sce (limited to '2510/CH5/EX5.4/Ex5_4.sce') diff --git a/2510/CH5/EX5.4/Ex5_4.sce b/2510/CH5/EX5.4/Ex5_4.sce new file mode 100755 index 000000000..beeb4ad81 --- /dev/null +++ b/2510/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,11 @@ +//Variable declaration: +P = 14.7 //Absolute pressure of air (psia) +MW = 29 //Molecular weight of air (lb/lbmol) +T = 75+460 //Temperature in Rankine scale (°R) +R = 10.73 //Universal gas constant (ft^3.psi/lbmol.°R) + +//Calculation: +p = P*MW/R/T //Density of air (lb/ft^3) + +//Result: +printf("The density of air at 75°F and 14.7 psia is : %.4f lb/ft^3",p) -- cgit