subject

Write a program that computes the spherical distance between two points on the surface of the earth, given their latitudes and longitudes. this is a useful operation because it tells you how far apart two cities are if you multiply the distance by the radius of the earth, which is roughly 6372.795 km. let 1, 1, and 2, 2 be the latitude and longitude of two points, respectively. δ , the longitudinal difference, and δσ, the angular difference/distance in radians, can be determined as follows from the spherical law of cosines: σ = arccos(sin 1 sin 2 + cos 1 cos 2 cos ) for example, consider the latitude and longitude of two major cities: • nashville, tn: n 36°7.2′, w 86°40.2′ • los angeles, ca: n 33°56.4′, w 118°24.0′ l l l programming projects 187 you must convert these coordinates to radians before you can use them effectively in the formula. after conversion, the coordinates become • nashville: 1 36.12° 0.6304 rad, 1 86.67° 1.5127 rad • los angeles: 2 33.94° 0.5924 rad, 2 118.40° 2.0665 rad using these values in the angular distance equation, you get thus, the distance between these cities is about 2887 km, or 1794 miles. (note: to solve this problem, you will need to use the math. acos method, which returns an arccosine angle in radians.)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
Write a program that computes the spherical distance between two points on the surface of the earth,...
Questions
question
Chemistry, 29.05.2021 09:50
question
Mathematics, 29.05.2021 09:50
question
English, 29.05.2021 09:50
question
Mathematics, 29.05.2021 09:50
Questions on the website: 13722360