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 --- 2870/CH1/EX1.7/Ex1_7.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2870/CH1/EX1.7/Ex1_7.sce (limited to '2870/CH1/EX1.7') diff --git a/2870/CH1/EX1.7/Ex1_7.sce b/2870/CH1/EX1.7/Ex1_7.sce new file mode 100755 index 000000000..148b47847 --- /dev/null +++ b/2870/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,18 @@ +clc;clear; +//Example 1.7 + +//constants used +g=9.81;//acceleration due to gravity in m/s^2; + +//given values +h1=0.1; +h2=0.2; +h3=0.35;//respective heights in m +pw=1000; +pHg=13600; +poil=800;//density of water, mercury and oil in kg/m^3 +Patm=85.6; + +//calculation +P1=Patm-(pw*g*h1+poil*g*h2-pHg*g*h3)/1000;//calculating pressure using liquid at same height have same pressure +disp(P1,'the air pressure in tank in kPa is ') -- cgit