Skip to main content

Fast and stable Kepler solver

Project description

Fast and stable solver for Kepler's equation extracted from exoplanet.


The best way to install is using pip:

python -m pip install


This package exposes two functions:

  • kepler: Solves Kepler's equation and returns the cosine and sine of the true anomaly:
import kepler
eccentric_anomaly, cos_true_anomaly, sin_true_anomaly = kepler.kepler(mean_anomaly, eccentricity)
  • solve: A lower-level interface that is used by kepler to actually do the solving (Note that this will return garbage for eccentricities out of the range zero to one):
import kepler
eccentric_anomaly = kepler.solve(mean_anomaly, eccentricity)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size (57.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page