This problem has issues. The coordinates of the cities are wrong. (Correct values can be taken from Google maps). New York's location is at 40.7128, -74.0059 and not 40.7128, 74.0059. The distance between Berlin and London is too close to its harvesine distance (which considers Earth's curvature; and the pythagorean distance cannot possible be that close). And that makes me believe that the author used different methods to calculate the distances between different cities. Moreover, the problem should explain what it is the precision required, if pi should be used with its exact value, if the Earth should be considered as an ellipsoid or an sphere. and finally which method must be used to convert from lat/long to cartesian coordinates (or at least, a hint). Please fix the problem description and the test suite whenever possible.
Find the numeric mean of the prime numbers in a matrix.
6782 Solvers
Find nearest prime number less than input number
268 Solvers
Basics: 'Find the eigenvalues of given matrix
323 Solvers
104 Solvers
What is Sum Of all elements of Matrix
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!