summaryrefslogtreecommitdiff
path: root/1844/CH4/EX4.7/4Q7.sce
blob: 572c470ba5aa54d76a976b2a1be3e520cbf85b25 (plain)
1
2
3
4
5
6
7
8
9
10
clc
AC= 250 //in m
AB= 200 // in m
BD=125 // in m
DC= 150 // in m
CB=BD+DC // in m
a= acos( (AC^2+CB^2-AB^2)/(2*AC*CB))
AD=sqrt(AC^2+DC^2-2*AC*DC*cos(a))

printf('AD = %f m',AD)