Cody

Solution 1124776

Submitted on 16 Feb 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
Berlin = [52.5200, 13.4050]; New_York = [40.7128, 74.0059]; London = [51.5074, 0.1278]; d1 = P_distance_km(Berlin, New_York); d2 = P_distance_km(Berlin, London); d3 = P_distance_km(London, New_York); assert(isequal(round(d1),4811)) assert(isequal(round(d2),916)) assert(isequal(round(d3),5820))

p1 = 52.5200 a1 = 13.4050 p2 = 40.7128 a2 = 74.0059 A = 0.1280 d = 4.6618e+03 p1 = 52.5200 a1 = 13.4050 p2 = 51.5074 a2 = 0.1278 A = 0.0051 d = 914.2828 p1 = 51.5074 a1 = 0.1278 p2 = 40.7128 a2 = 74.0059 A = 0.1792 d = 5.5702e+03

Assertion failed.