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 bykepler
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 hashes)
Built Distribution
Close
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 |