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.4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

kepler.py-0.0.4-cp38-cp38-macosx_10_9_x86_64.whl (57.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kepler.py-0.0.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for kepler.py-0.0.4.tar.gz
Algorithm Hash digest
SHA256 cc1e15198f74f40eb7cba200dfb1a9321c983daf8d7f6d4f587527bbffd1f2cd
MD5 0b4aaf436e0c3d5d50d0daacca80e105
BLAKE2b-256 ab7d19a4af4d6e98372b7368d08a4038c3d3beddc950f3500f229d864b8ccfa9

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.4-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: kepler.py-0.0.4-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for kepler.py-0.0.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8ac728e6133c319e5279986087509125c26c1de26437bb0a8ec4fbde507ce222
MD5 a56625286173ae8a600f805ff1011405
BLAKE2b-256 5639de965bfca1b02214c3de864eeb0d5fdedc62ff7695884e4826c9721b30cf

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