summaryrefslogtreecommitdiff
path: root/1553/CH16/EX16.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1553/CH16/EX16.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 '1553/CH16/EX16.7')
-rw-r--r--1553/CH16/EX16.7/16Ex7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1553/CH16/EX16.7/16Ex7.sce b/1553/CH16/EX16.7/16Ex7.sce
new file mode 100644
index 000000000..ee200456e
--- /dev/null
+++ b/1553/CH16/EX16.7/16Ex7.sce
@@ -0,0 +1,16 @@
+//chapter 16 Ex 7
+clc;
+clear;
+close;
+//let pipes be A B and leak be C
+t1=36; t2=45; //time taken by A and B to fill tank individually
+t3=30; //time taken by leak to empty the tank
+A1min=1/t1; B1min=1/t2; //part filled by A and B in 1 min each individually
+C1min=-1/t3; //part emptied by leak
+AB1min=A1min+B1min; //part filled by A and B in 1 min each together
+AB7min=7*AB1min;
+remainingPart=1-AB7min;
+ABC1min=A1min+B1min+C1min; //part filled by all 3 pipes in 1 min
+totalTime=(1/ABC1min)*remainingPart+7;
+
+mprintf("Thus total time taken to fill the tank is %.0f min",totalTime);