summaryrefslogtreecommitdiff
path: root/3720/CH5/EX5.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3720/CH5/EX5.7
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3720/CH5/EX5.7')
-rw-r--r--3720/CH5/EX5.7/Ex5_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3720/CH5/EX5.7/Ex5_7.sce b/3720/CH5/EX5.7/Ex5_7.sce
new file mode 100644
index 000000000..caed91990
--- /dev/null
+++ b/3720/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,21 @@
+// Example 5_7
+clc;clear;funcprot(0);
+// Given values
+P_atm=101.3;// The atmospheric pressure in kPa;
+rho=750;//The density of gasoline in kg/m^3
+g=9.81;//m/s^2
+z_1=0.75;// m
+z_3=2.75;// m
+D=(5/1000);// m
+
+// Calculation
+//(a)
+V_2=sqrt(2*g*z_1);
+A=(%pi*D^2)/4;//The cross-sectional area of the tube in m^2
+v=V_2*A*1000;//The flow rate of gasoline in L/s
+V=4;// Volume of gasoline in litre
+gradt=V/v;
+printf('(a)The time needed to siphon 4 L of gasoline from the tank,gradt=%0.1f s\n',gradt);
+//(b)
+P_3=P_atm-((rho*g*z_3)/1000);// kPa
+printf('(b)The pressure at point 3,P_3=%0.1f kPa\n',P_3);