summaryrefslogtreecommitdiff
path: root/1553/CH34/EX34.3/34Ex3.sce
blob: 7091b9f61f8a99afe7c9a72950b129dc808e3a4b (plain)
1
2
3
4
5
6
7
8
9
//Chapter 34 Ex 3

clc;
clear;
close;
theta1=(60*%pi)/180; theta2=(30*%pi)/180;   //converted into radian
//forming the equations from given condition and solving them we get (h/tan(theta2))-(h/tan(theta1))=24 and solving we get
h=24/((1/tan(theta2))-(1/tan(theta1)));
mprintf("The height of the tower is %.2f meters",h);