Cody

Solution 2386783

Submitted on 27 May 2020 by Binbin Qi
  • Size: 14
  • This is the leading solution.
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
p = 86164.0905; y_correct = 35793; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.5)

ans = 0.2466

2   Pass
p = 92.5*60; y_correct = 404.2002; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.05)

ans = -6.0152e-05

3   Pass
p = 34123; y_correct = 16367; OrbitAltitude(p)-y_correct assert(abs(OrbitAltitude(p)-y_correct)<0.5)

ans = 0.3149

4   Pass
s=importdata('OrbitAltitude.m'); y_correct=false; assert(isequal(sum(contains(s,'regexp')),y_correct))