Cody

# Problem 190. Great Circle Distance

Solution 1427676

Submitted on 29 Jan 2018
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));

x1 = 75.4407 y1 = 13.3022 z1 = 64.2788 x2 = 22.7332 y2 = -8.2742 z2 = 97.0296 h1 = 56.9527 d = 65.6980

Assertion failed.

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

x1 = -4.3265e+05 y1 = -3.1819e+06 z1 = 5.5025e+06 x2 = 1.1413e+06 y2 = -3.9866e+06 z2 = 4.8367e+06 h1 = 1.7677e+06 d = 1.8890e+06

Assertion failed.

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

x1 = -4.4552e+05 y1 = -3.2766e+06 z1 = 5.4457e+06 x2 = 1.1413e+06 y2 = -3.9866e+06 z2 = 4.8367e+06 h1 = 1.7384e+06 d = 1.8420e+06

Assertion failed.