summaryrefslogtreecommitdiff
path: root/1553/CH26
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH26')
-rw-r--r--1553/CH26/EX26.1/26Ex1.sce11
-rw-r--r--1553/CH26/EX26.2/26Ex2.sce9
-rw-r--r--1553/CH26/EX26.3/26Ex3.sce9
-rw-r--r--1553/CH26/EX26.4/26Ex4.sce13
-rw-r--r--1553/CH26/EX26.5/26Ex5.sce11
5 files changed, 53 insertions, 0 deletions
diff --git a/1553/CH26/EX26.1/26Ex1.sce b/1553/CH26/EX26.1/26Ex1.sce
new file mode 100644
index 000000000..abaf83e08
--- /dev/null
+++ b/1553/CH26/EX26.1/26Ex1.sce
@@ -0,0 +1,11 @@
+//chapter 26 Ex 1
+
+clc;
+clear;
+close;
+Dist=28; t=7;
+Btime=(t/Dist)*1000;
+Atime=Btime-t;
+Atime_min=(round(Atime/60));
+Atime_sec=(modulo(Atime,240));
+printf("Time of A over course is %d min %d sec",Atime_min,Atime_sec);
diff --git a/1553/CH26/EX26.2/26Ex2.sce b/1553/CH26/EX26.2/26Ex2.sce
new file mode 100644
index 000000000..91a06a065
--- /dev/null
+++ b/1553/CH26/EX26.2/26Ex2.sce
@@ -0,0 +1,9 @@
+//Chapter 27 Ex2
+clc;
+clear;
+close;
+ //the ratio of their distances is 7: 4 thus assuming dist of A as 7, dist of B is3
+ distA=7; distB=3; //from given conditions
+ gain=84;
+ distPost=gain/(distB/distA);
+ mprintf("The pole must be placed %.0f meter away from starting point",distPost);
diff --git a/1553/CH26/EX26.3/26Ex3.sce b/1553/CH26/EX26.3/26Ex3.sce
new file mode 100644
index 000000000..e81ec9910
--- /dev/null
+++ b/1553/CH26/EX26.3/26Ex3.sce
@@ -0,0 +1,9 @@
+//Chapter 26 Ex 3
+
+clc;
+close;
+clear;
+t1=190; t2=200; //converted into seconds
+dist1=1000; //converted into kilometers
+dist2=(dist1*(t2-t1))/t2;
+mprintf("A beats B by %d meters",dist2);
diff --git a/1553/CH26/EX26.4/26Ex4.sce b/1553/CH26/EX26.4/26Ex4.sce
new file mode 100644
index 000000000..81a617971
--- /dev/null
+++ b/1553/CH26/EX26.4/26Ex4.sce
@@ -0,0 +1,13 @@
+//Chapter 26 Ex 4
+
+clc;
+close;
+clear;
+dist=100;
+speedA=(8*1000)/(60*60); //converted into meter/second
+tA=dist/speedA;
+ahead=4; tbeat=15;...//if B starts 4 meters ahead od A then also A beats B by 15 seconds
+Bcover=dist-ahead;
+tB=tA+tbeat;
+speedB=(Bcover/tB);
+mprintf("The speed of B is %.2f km/hr",(speedB*60*60)/1000);
diff --git a/1553/CH26/EX26.5/26Ex5.sce b/1553/CH26/EX26.5/26Ex5.sce
new file mode 100644
index 000000000..6f1242977
--- /dev/null
+++ b/1553/CH26/EX26.5/26Ex5.sce
@@ -0,0 +1,11 @@
+//Chapter 26 Ex5
+clc;
+clear;
+close;
+lagBA=40; lagCA=64; //distance B and C are lagging from A
+//assuming A covers 1000 m
+A=1000;
+B=A-lagBA; //from given condition
+C=A-lagCA;
+lagCB=A*(C/B); //Distance C is lagging from B
+mprintf("B should give C a start of %.0f meter",A-lagCB);