This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
M = pi/2;
e = 0;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.5708))
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
E =
1.5708
|
2 | Fail |
M = pi/2;
e = 0.8;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 2.21193))
E =
2.3708
E =
2.1282
E =
2.2497
E =
2.1934
E =
2.2207
E =
2.2077
E =
2.2139
E =
2.2110
E =
2.2124
E =
2.2117
|
3 | Pass |
M = pi/3;
e = 0.1;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.13798))
E =
1.1338
E =
1.1378
E =
1.1380
E =
1.1380
E =
1.1380
E =
1.1380
E =
1.1380
E =
1.1380
E =
1.1380
E =
1.1380
|
4 | Pass |
M = 0.1;
e = 0.2;
assert(isequal(round(kepler(M, e)*1e5)/1e5, 0.12492))
E =
0.1200
E =
0.1239
E =
0.1247
E =
0.1249
E =
0.1249
E =
0.1249
E =
0.1249
E =
0.1249
E =
0.1249
E =
0.1249
|
Back to basics 25 - Valid variable names
293 Solvers
Convert given decimal number to binary number.
636 Solvers
327 Solvers
Spot the First Occurrence of 5
365 Solvers
390 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!