diff options
Diffstat (limited to '1553/CH34/EX34.5/34Ex5.sce')
-rw-r--r-- | 1553/CH34/EX34.5/34Ex5.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1553/CH34/EX34.5/34Ex5.sce b/1553/CH34/EX34.5/34Ex5.sce new file mode 100644 index 000000000..97e0ca579 --- /dev/null +++ b/1553/CH34/EX34.5/34Ex5.sce @@ -0,0 +1,12 @@ +//chapter 34 Ex 5
+
+clc;
+clear;
+close;
+t=10; theta1=30; theta2=60;
+//let height=h; base1=x; base2=y;
+//from figure, (x+y)=tan(60)*h; and y=tan(30)*h;
+x=tan(60)-tan(30); //this equation excludes the h term since 2 eq's cannot contain 3 unknowns
+y=1/tan(60); //this equation excludes the h term since 2 eq's cannot contain 3 unknowns
+time=t*y/x;
+mprintf("The time required to reach shore is %.0f min",time);
|