diff options
Diffstat (limited to '629/CH3/EX3.2/example3_2.sce')
-rw-r--r-- | 629/CH3/EX3.2/example3_2.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/629/CH3/EX3.2/example3_2.sce b/629/CH3/EX3.2/example3_2.sce new file mode 100644 index 000000000..a84ab7fbf --- /dev/null +++ b/629/CH3/EX3.2/example3_2.sce @@ -0,0 +1,11 @@ +clear
+clc
+//Example 3.2 WATER PRESSURE IN A TANK
+//Hydrostatic equation, p1/Gamma +z1=p2/Gamma +z2
+p1=0; //[psig]
+z1=250; //[ft]
+z2=215; //[ft]
+Gamma=62.4; //specific weight of water[lbf/ft^3]
+//1psig=144psfg
+p2=p1+(z1-z2)*Gamma/144 //[psig]
+printf("\nThe water pressure at the depth of 35ft in the tank = %.1f psig.\n",p2)
\ No newline at end of file |