Cody

Solution 1994731

Submitted on 29 Oct 2019
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
assert(isequal(round(sphere_distance(100,10,50,-20,14)*10000)/10000,75.9097));

dp1p2 = 62.1102 angle = 1.8000e+02 - 1.0009e+03i d = 3.1416e+02 - 1.7468e+03i

Assertion failed.

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

dp1p2 = 1.6232e+06 angle = 1.8000e+02 - 3.4340e+03i d = 2.0015e+07 - 3.8184e+08i

Assertion failed.

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

dp1p2 = 1.6029e+06 angle = 1.8000e+02 - 3.4325e+03i d = 2.0015e+07 - 3.8168e+08i

Assertion failed.