summaryrefslogtreecommitdiff
path: root/1553/CH18/EX18.7/18Ex7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH18/EX18.7/18Ex7.sce')
-rw-r--r--1553/CH18/EX18.7/18Ex7.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH18/EX18.7/18Ex7.sce b/1553/CH18/EX18.7/18Ex7.sce
new file mode 100644
index 000000000..64cd2ef22
--- /dev/null
+++ b/1553/CH18/EX18.7/18Ex7.sce
@@ -0,0 +1,9 @@
+//chapter 18 Ex 7
+
+clc;
+clear;
+close;
+l1=100; l2=120; s1=72; s2=54;
+sRelative=(s1-s2)*5/18; //Addition of speeds since in opposite direction
+tPass=(l1+l2)/sRelative;
+printf("The time taken by trians to pass each other is %d sec",tPass);