summaryrefslogtreecommitdiff
path: root/1553/CH16/EX16.2/16Ex2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH16/EX16.2/16Ex2.sce')
-rw-r--r--1553/CH16/EX16.2/16Ex2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH16/EX16.2/16Ex2.sce b/1553/CH16/EX16.2/16Ex2.sce
new file mode 100644
index 000000000..83bc253e5
--- /dev/null
+++ b/1553/CH16/EX16.2/16Ex2.sce
@@ -0,0 +1,11 @@
+//chapter 16 Ex 2
+clc;
+clear;
+close;
+//let pipes be A, B and C
+t1=10; t2=12; //time taken by A and B to fill tank individually
+t3=-20; //negative sign since time taken is to empty the tank
+A1hour=1/t1; B1hour=1/t2; //part filled by A and B in 1 hour each
+C1hour=1/t3; //part emptied by C in 1 hour
+ABC1hour=A1hour+B1hour+C1hour; //part filled by all 3 pipes in 1 hour
+mprintf("Thus the time taken by all pipes together to fill the tank is %.1f hours",1/ABC1hour);