Cody

Solution 2203691

Submitted on 10 Apr 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
M = pi/2; e = 0; assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.5708))

M = 1.5708 1.5708 1.0472 0.1000 e = 0 0.8000 0.1000 0.2000

Unrecognized function or variable 'E'. Error in kepler (line 4) M = E-e*sin(E); Error in Test1 (line 3) assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.5708))

2   Fail
M = pi/2; e = 0.8; assert(isequal(round(kepler(M, e)*1e5)/1e5, 2.21193))

M = 1.5708 1.5708 1.0472 0.1000 e = 0 0.8000 0.1000 0.2000

Unrecognized function or variable 'E'. Error in kepler (line 4) M = E-e*sin(E); Error in Test2 (line 3) assert(isequal(round(kepler(M, e)*1e5)/1e5, 2.21193))

3   Fail
M = pi/3; e = 0.1; assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.13798))

M = 1.5708 1.5708 1.0472 0.1000 e = 0 0.8000 0.1000 0.2000

Unrecognized function or variable 'E'. Error in kepler (line 4) M = E-e*sin(E); Error in Test3 (line 3) assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.13798))

4   Fail
M = 0.1; e = 0.2; assert(isequal(round(kepler(M, e)*1e5)/1e5, 0.12492))

M = 1.5708 1.5708 1.0472 0.1000 e = 0 0.8000 0.1000 0.2000

Unrecognized function or variable 'E'. Error in kepler (line 4) M = E-e*sin(E); Error in Test4 (line 3) assert(isequal(round(kepler(M, e)*1e5)/1e5, 0.12492))

Suggested Problems

More from this Author1