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, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
question
Computers and Technology, 25.06.2019 04:20
Austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names. an unknown individual took control of austin's servers and transferred the domain names to another registrant without austin's permission. the new registrant began using the domain names to host malicious content—including hate letters to customers and fraudulent contact information—and to post customers' credit-card numbers and other private information, thereby tarnishing austin's goodwill. austin filed a suit in a federal district court against the new registrant under the anticybersquatting consumer protection act. is austin entitled to a transfer of the domain names? austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names
Answers: 3
You know the right answer?
Write a program that computes the spherical distance between two points on the surface of the earth,...
Questions
question
Mathematics, 01.10.2019 21:00
question
Mathematics, 01.10.2019 21:00