Cody

Problem 190. Great Circle Distance

Solution 2122808

Submitted on 9 Feb 2020
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));

Error in solution: Line: 3 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 3 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

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

Error in solution: Line: 3 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.