summaryrefslogtreecommitdiff
path: root/1553/CH34/EX34.5/34Ex5.sce
blob: 97e0ca5799ee4d2fe9a5af52255785a7b8d5f427 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);