summaryrefslogtreecommitdiff
path: root/3782/CH3/EX3.7/Ex3_7.sce
blob: 08ba2998c8e98d69c3003ec45cb8a7fbd52b4cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//

//

magneticbearing=135+0.5
declination=5+0.25
truebearing=magneticbearing-declination
deg=int(truebearing)
mins=truebearing-deg
printf("\n truebearing of AB= %0.3f degrees %0.3f minutes",deg,15.0)

truebearing=210+(45/60)
declination=8+(15/60)
magnetic_bearing=truebearing+declination
deg=int(magnetic_bearing)
mins=magnetic_bearing-deg
printf("\n magnetic bearing of AB= %0.3f degrees %0.3f minutes",deg,mins)