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 --- 1052/CH33/EX33.2/332.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1052/CH33/EX33.2/332.sce (limited to '1052/CH33/EX33.2/332.sce') diff --git a/1052/CH33/EX33.2/332.sce b/1052/CH33/EX33.2/332.sce new file mode 100755 index 000000000..0c01ff632 --- /dev/null +++ b/1052/CH33/EX33.2/332.sce @@ -0,0 +1,12 @@ +clc; +//Example 33.2 page no 525 +printf("Example 33.2 page no 525\n\n"); +//unit conversion of poressure given in mmHg into various units +P=80//pressure given in mmHg +P1=P*(29.92/760)//pressure , in Hg +P2=P*(33.91/760)//pressure ,ft H2O +P3=P2*12//pressure ,in H2O +P4=P*(14.7/760)//pressure ,psia +P5=P*(2116/760)//pressure ,psfa +P6=P*(1.013e+5/760)//pressure ,N/m^2 +printf("\n P1=%f inHg\n P2=%f ft H2O\nP3=%f in H2O\n P4=%f psia\nP5=%f psfa\nP6=%f N/m^2",P1,P2,P3,P4,P5,P6);//in book answers are round off after decimal but there are exact answers -- cgit