Browse Source
New modular API: - solve_kepler_elliptical(M, e): Newton-Raphson for E - e·sin(E) = M - solve_kepler_hyperbolic(M, e): Solver for H - e·sinh(H) = M - eccentric_to_true_anomaly(E, e): Convert eccentric to true anomaly - hyperbolic_to_true_anomaly(H, e): Convert hyperbolic to true anomaly - mean_anomaly_to_true_anomaly(M, e): Unified wrapper (dispatches based on e) Changes: - Renamed solve_kepler_equation() → solve_kepler_elliptical() for clarity - Extracted KEPLER_TOLERANCE and KEPLER_MAX_ITERATIONS constants - Separated hyperbolic solver logic from combined function - Fixed test_newton_raphson_convergence to verify Kepler's equation (instead of incorrectly expecting E ≈ M for small e) - Added TODO comment for future cartesian_to_orbital_elements refactoringmain
3 changed files with 85 additions and 16 deletions
Loading…
Reference in new issue