You are on page 1of 2

# --------------------------------tugas pemrograman mencari jarak

## oleh: Pande Komang Gede Arta Negara

NPT : 13.11.2547
---------------------------------lintang stasiun=
8
8
8
7
7
7
6
6
6
5
5
5
4
4
4
3
3
3
2
2
2
bujur stasiun=
90
91
90
91
90
91
90
91
90
91
90
91
90
91

92
92
92
92
92
92
92

8
7
6
5
4
3
2

8
7
6
5
4
3
2

8
7
6
5
4
3
2

8
7
6
5
4
3
2

93
93
93
93
93
93
93

94
94
94
94
94
94
94

95
95
95
95
95
95
95

96
96
96
96
96
96
96

lintang sumber=
4
bujur sumber=
88
lintang =
444 444 444 444 444 444 444
333 333 333 333 333 333 333
222 222 222 222 222 222 222
111 111 111 111 111 111 111
0
0
0
0
0
0
0
-111 -111 -111 -111 -111 -111 -111
-222 -222 -222 -222 -222 -222 -222
bujur =
-222
-222
-222
-222
-222
-222
-222

-333
-333
-333
-333
-333
-333
-333

-444
-444
-444
-444
-444
-444
-444

-555
-555
-555
-555
-555
-555
-555

-666
-666
-666
-666
-666
-666
-666

-777
-777
-777
-777
-777
-777
-777

-888
-888
-888
-888
-888
-888
-888

jarak=sqrt((lintang.*lintang)+(bujur.*bujur))
jarak =
496.4071 555.0000 627.9108 710.7468 800.4324 894.9106 992.8142
400.2162 470.9331 555.0000 647.2357 744.6106 845.3508 948.3844

313.9554
248.2035
222.0000
248.2035
313.9554

400.2162
351.0128
333.0000
351.0128
400.2162

496.4071
457.6647
444.0000
457.6647
496.4071

597.7533
565.9912
555.0000
565.9912
597.7533

702.0256
675.1866
666.0000
675.1866
702.0256

808.0922
784.8885
777.0000
784.8885
808.0922

915.3294
894.9106
888.0000
894.9106
915.3294