blob: 4206af1dbe316d6555e782d67542ad0b59a3ec86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc,clear
//example 1.11
//To find the height of the flagpole
//conside the attached figure
d=150 //distance of person from flagpole in feet
angle_ele = 32 //angle of elevation in degree
height_eyes =6 //height of man's eyes
h= d*tand(angle_ele)
height_flagpole = height_eyes + h
printf('Required height of flagpole = %.0f ft',height_flagpole)
|