summaryrefslogtreecommitdiff
path: root/2870/CH1/EX1.7/Ex1_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH1/EX1.7/Ex1_7.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2870/CH1/EX1.7/Ex1_7.sce')
-rwxr-xr-x2870/CH1/EX1.7/Ex1_7.sce18
1 files changed, 18 insertions, 0 deletions
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 ')