Cody

Solution 1939682

Submitted on 17 Sep 2019 by Nikolaos Nikolaou
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   Pass
assert(isequal(round(sphere_distance(100,10,50,-20,14)*10000)/10000,75.9097));

l = 0.0175 p1 = 0.8727 p2 = 0.2443 a1 = 0.1745 a2 = -0.3491 d = 75.9097

2   Pass
assert(isequal(round(sphere_distance(6371e3,-97.7430608,30.267153,-74.0244265,40.6081588)*10000)/10000,2426004.8394));

l = 0.0175 p1 = 0.5283 p2 = 0.7087 a1 = -1.7059 a2 = -1.2920 d = 2.4260e+06

3   Pass
assert(isequal(round(sphere_distance(6371e3,-97.7430608,31.267153,-74.0244265,40.6081588)*10000)/10000,2364307.7819));

l = 0.0175 p1 = 0.5457 p2 = 0.7087 a1 = -1.7059 a2 = -1.2920 d = 2.3643e+06