Skip to main content

Fast and stable Kepler solver

Project description

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

Installation

The best way to install is using pip:

python -m pip install kepler.py

Usage

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.

Source Distribution

kepler.py-0.0.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file kepler.py-0.0.0.tar.gz.

File metadata

  • Download URL: kepler.py-0.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for kepler.py-0.0.0.tar.gz
Algorithm Hash digest
SHA256 074e12610f76a02cc9c78e51c537832ffe67e04eacfafdcf56584638164cf0fc
MD5 1fa19f236c6b581a1e9d991e1b9b56d2
BLAKE2b-256 f3c3f1bd4fba6d11fadb7a1dce48c71b0c939b8b0918db65f4f3b828f3fc14bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page