summaryrefslogtreecommitdiff
path: root/1844/CH3/EX3.7/3Q7.sce
blob: fa2081842efd82ae4aabff8c0ed12876bbf53382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
k= 8 // slope between points in degrees
l=428 //measured length in m
D1=l*cosd(k)
printf('a)Horizontal distance between the points =%f m\n',D1)

h=62
D2=sqrt(l^2-h^2)
printf(' b)Horizontal distance between the points =%f m\n',D2)

k= atan(0.25)
D3=l*cos(k)
printf(' c)Horizontal distance between the points =%f m',D3)