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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, dreyes439
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, AM28
Does read theory have answers keys ?
Answers: 1
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
image
Computers and Technology, 24.06.2019 23:30, clairajogriggsk
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
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 in other subjects:

Konu
Mathematics, 15.06.2020 21:57