Cody

Problem 2383. Kepler's Equation

Solution 3066349

Submitted on 5 Oct 2020 by Teja Abdullah Al-Mujahid
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
M = pi/2; e = 0; assert(isequal(round(kepler(M, e)*1e5)/1e5, 1.5708))

E = 1.5708

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

E = 2.2542 E1 = 2.2542 E = 2.2123 E1 = 2.2123 E = 2.2119 E1 = 2.2119 E = 2.2119 E1 = 2.2119 E = 2.2119

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

E = 1.1384 E1 = 1.1384 E = 1.1380 E1 = 1.1380 E = 1.1380 E1 = 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.1249 E1 = 0.1249 E = 0.1249 E1 = 0.1249 E = 0.1249 E1 = 0.1249 E = 0.1249

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!