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 --- 914/CH7/EX7.2/ex7_2.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 914/CH7/EX7.2/ex7_2.sce (limited to '914/CH7/EX7.2') diff --git a/914/CH7/EX7.2/ex7_2.sce b/914/CH7/EX7.2/ex7_2.sce new file mode 100755 index 000000000..98d3fd3eb --- /dev/null +++ b/914/CH7/EX7.2/ex7_2.sce @@ -0,0 +1,17 @@ +clc; +warning("off"); +printf("\n\n example7.2 - pg273"); +// given +id=4; //[m] - inside diameter +h=2; //[m] - water level +ro=0.03; //[m] - radius of exit hole +rt=id/2; //[m] - inside radius +g=9.80665; //[m/sec^2] - gravitational acceleration +// using the equation dh/h^(1/2)=-((ro^2)/(rt^2))*(2*g)^(1/2)dt and integrating between h=2 and h=1 +t1=integrate('(1/h^(1/2))*(1/(-((ro^2)/(rt^2))*(2*g)^(1/2)))','h',2,1); +printf("\n\n Time required to remove half of the contents of the tank is \n t=%fsec=%fmin",t1,t1/60); +//integrating between h=2 and h=0 +t2=integrate('(1/h^(1/2))*(1/(-((ro^2)/(rt^2))*(2*g)^(1/2)))','h',2,0); +printf("\n\n Time required to empty the tank fully is \n t=%fsec=%fmin",t2,t2/60); + + -- cgit