summaryrefslogtreecommitdiff
path: root/3782/CH1/EX1.20/Ex1_20.sce
blob: d60f01c64aa2b34459b21778a380fd27f116b0aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

//ch-1  page -38,39  pb-3

//

//

ab=280

AB1=ab*(cos(10*(%pi/180)))

printf("\n horizontal distance 1 is  %0.3f meters',AB1)

cosal=(10/(sqrt(101)))

AB2=ab*cosal

printf("\n horizontal distance 2 is  %0.3f meters',AB2)

bb=8
AB3=sqrt(ab*ab-(bb*bb))

printf("\n horizontal distance 3 is  %0.3f meters',AB3)