summaryrefslogtreecommitdiff
path: root/51/CH5/EX5.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /51/CH5/EX5.5
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 '51/CH5/EX5.5')
-rwxr-xr-x51/CH5/EX5.5/5_5.sce20
-rwxr-xr-x51/CH5/EX5.5/5_5graph.jpgbin0 -> 24711 bytes
2 files changed, 20 insertions, 0 deletions
diff --git a/51/CH5/EX5.5/5_5.sce b/51/CH5/EX5.5/5_5.sce
new file mode 100755
index 000000000..e3d432eb6
--- /dev/null
+++ b/51/CH5/EX5.5/5_5.sce
@@ -0,0 +1,20 @@
+clc;
+clear;
+Q=9;//gal/min
+l=5;//ft
+b=2;//ft
+H=1.5;//ft
+//continuity equation to water: integral of m= d*((h*b*l)+(H-h)*A); where A is cross-sectional area of faucet
+//m=d*(b*l-A)*dh/dt, where dh/dt= hrate
+//m=d*Q
+//since A<<l*b, it can be neglected
+fn=poly([0 (1.94*l*b)],"h","c");
+x=derivat(fn);//x=m/(dh/dt)
+hrate=Q*12*1.94/(x*7.48);
+disp("in./min",hrate,"Time rate of change of depth of water in tub =")
+d=0:30;
+for i=0:30
+ hrate1(i+1)=(Q*12*12*12)/(((l*b*12*12)-(%pi*(i^2)/4))*7.48);
+end
+plot2d(d,hrate1,rect=[0,0,30,3])
+xtitle("graph","D, in.","dh/dt, in./min")
diff --git a/51/CH5/EX5.5/5_5graph.jpg b/51/CH5/EX5.5/5_5graph.jpg
new file mode 100755
index 000000000..c48a0cda3
--- /dev/null
+++ b/51/CH5/EX5.5/5_5graph.jpg
Binary files differ