Cody

Solution 20812

Submitted on 1 Feb 2012 by S L
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));
xyz = 0.633022221559489 0.911779733961658 0.11161889704895 -0.3318606833692 0.766044443118978 0.241921895599668 t = 0.759096968174733
2   Pass
%% assert(isequal(round(sphere_distance(6371e3,-97.7430608,30.267153,-74.0244265,40.6081588)*10000)/10000,2426004.8394));
xyz = -0.116365030430281 0.208946854019155 -0.8558097637531 -0.729858483247486 0.504032566366324 0.650882329324723 t = 0.380788704974469
3   Pass
%% assert(isequal(round(sphere_distance(6371e3,-97.7430608,31.267153,-74.0244265,40.6081588)*10000)/10000,2364307.7819));
xyz = -0.115162135961728 0.208946854019155 -0.846963043848115 -0.729858483247486 0.519029175284269 0.650882329324723 t = 0.371104658902889