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.2469
|
2 | Pass |
p = 92.5*60;
y_correct = 404.2002;
OrbitAltitude(p)-y_correct
assert(abs(OrbitAltitude(p)-y_correct)<0.05)
ans =
-2.1210e-05
|
3 | Pass |
p = 34123;
y_correct = 16367;
OrbitAltitude(p)-y_correct
assert(abs(OrbitAltitude(p)-y_correct)<0.5)
ans =
0.3151
|
4 | Pass |
s=importdata('OrbitAltitude.m');
y_correct=false;
assert(isequal(sum(contains(s,'regexp')),y_correct))
|
Number of 1s in the Binary Representation of a Number
356 Solvers
464 Solvers
163 Solvers
224 Solvers
249 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!