Skip to main content

Fast and stable solver for Kepler's equation in Python

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

Uploaded Source

Built Distributions

kepler.py-0.0.7-cp310-cp310-win_amd64.whl (65.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

kepler.py-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

kepler.py-0.0.7-cp310-cp310-macosx_11_0_arm64.whl (51.4 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

kepler.py-0.0.7-cp310-cp310-macosx_10_9_x86_64.whl (54.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

kepler.py-0.0.7-cp310-cp310-macosx_10_9_universal2.whl (99.8 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

kepler.py-0.0.7-cp39-cp39-win_amd64.whl (65.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

kepler.py-0.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

kepler.py-0.0.7-cp39-cp39-macosx_11_0_arm64.whl (51.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

kepler.py-0.0.7-cp39-cp39-macosx_10_9_x86_64.whl (54.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

kepler.py-0.0.7-cp39-cp39-macosx_10_9_universal2.whl (99.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

kepler.py-0.0.7-cp38-cp38-win_amd64.whl (65.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

kepler.py-0.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

kepler.py-0.0.7-cp38-cp38-macosx_11_0_arm64.whl (51.4 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

kepler.py-0.0.7-cp38-cp38-macosx_10_9_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

kepler.py-0.0.7-cp38-cp38-macosx_10_9_universal2.whl (99.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

kepler.py-0.0.7-cp37-cp37m-win_amd64.whl (65.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

kepler.py-0.0.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (82.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

kepler.py-0.0.7-cp37-cp37m-macosx_10_9_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: kepler.py-0.0.7.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for kepler.py-0.0.7.tar.gz
Algorithm Hash digest
SHA256 762e19c212552a68dc3508c74391fcdefa87f1b197aa7de6528e8d366bdadd5c
MD5 faa34320b75f3c9cdf33c222feb2931d
BLAKE2b-256 01869da05e90cc95bbf468d4e0a25df4aa0082c0c41a7bf0d0a1e2bdbb3f92cb

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 74dc4523977c039b7af3eaead91ba015deca3519b68a753efd75da0b80526a65
MD5 e31d95cf578455e8c3bc0b03acb08391
BLAKE2b-256 65e3e7cceeb0948e4eef6245a39c4a637e3abc65d8bdc0d66b28efd53dcb64d4

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41f4c1c696e3ab99e01ab704cfcb7cfa778ad1221d261a5bfb2d172cde4e475c
MD5 43321954a253a2240eb525f768263496
BLAKE2b-256 661ae2128bc28817ecf4a84035e0fd116e513c8a9f6a6dd27e9f715a00c279aa

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 633dae224bf556afa1c0cccde7308d9fde332c2324ea024862fd9835b15a8bd2
MD5 4f8069f4bc25f620b6a7412170e2511d
BLAKE2b-256 d856d6ab76125bdaa45d1b56eb9b58e496f34568a91f00fef12a63503526260e

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4d45347528b9caaedf2f6dd7bf051e26c69aeb0bf192f531c78d22ae29f3662a
MD5 59a93cdd0eff96a42e5fe43f7c12dc0b
BLAKE2b-256 8c4f26bb8cf9cecd3f29a4cab9719b682a945e400927570701a0e90236b82178

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fda4bca4cf85af0adc0bc38c55a14074fd5526bbca64dbfd1d2c9ec629315385
MD5 16b2d207c2d0880549af40b3f5dfe909
BLAKE2b-256 450d50e7281726c2b53ede17942b2a633fae695ea24635c19b99a10c29af6274

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: kepler.py-0.0.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 65.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for kepler.py-0.0.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5efb29406b8953875e7c5faf6950daa56536f614e13606ba08b79cf356e84b1b
MD5 cc3730468f51206174b65058b3416f75
BLAKE2b-256 6cb911e4f3f445577000b4bd66bed1ceb848425e2626f4372df413dc895d2204

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c82306e83f7d47e1e7964d2195864ddadd7bf4fb5e0de2fb478de4fc59c34568
MD5 4bb50fb7905a1d0e002eb4de94a6266d
BLAKE2b-256 4b5dbddaeb69f7a55117c4defd7c946a3238c446da314a214074df2ee3943da5

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5577b589904950dfc863d6d0134d8ef0b9688fd36a391b3e2d2eafa93262ac0f
MD5 bbb9a569972fa72079bafe7d84c9f719
BLAKE2b-256 73f125d0c2e0ef45d1042eee8e348bc278738ac50ce37eced54f446d1b9f3e5e

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b5724889388e60ead98ce8fb976db1d2cc0939a03a4715118446ff501b99b34d
MD5 a1655908229472a482b54c316b5ff4a4
BLAKE2b-256 b12160a30bf729d3e82b1da3728e9931f1e5130761e7216f8b07da8950f48185

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3cafe04d8fedb36d6e03e6c288649484425b8593a86954e44b9998c8b3bd50df
MD5 5cb4c8ba37dd5df15ab406182e9e4666
BLAKE2b-256 ebbd6e7dcfc3f94804f188c84f2bf0bf6b701faabd008d74efc79e3f7aaf965f

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: kepler.py-0.0.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 65.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for kepler.py-0.0.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2df5174f8cb7d0d9e910822712466afd8fd9e7dc0ec531202d6d405350cebf01
MD5 4b1d62e519946ba7551ea2222ef8c277
BLAKE2b-256 3cf5362effe8723d11fe4f22913f8e0fa6e63b6c180337d1229ac9f29f4fbcb7

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d6a7177702e2d5cb9b81af84cd8c0af7ee5fb4d839010f5045043c159963f2b
MD5 0cb577fcb7e3ddceaefdb8abd4fbb14e
BLAKE2b-256 5b09334f37d276ed610636e32a942bb0572a8de4621ba5a53640da3c936d6bd7

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0320919a9f7cfe9ce9aee6160606bba30ce5daa66e48ba2781def6632c4e028e
MD5 1cc3d7e2cc07fa7a459520fde95ce854
BLAKE2b-256 a5733fb4f67e9d59ef35fb41470fa9f7f1977fbdbf577bb938b02de1abbd7942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e220a56933146b02e8a1dd08d88a6ae3c1984630f82598615495f9fcddd8b38
MD5 4c23cc832a588debe33b9c5dcc4787e3
BLAKE2b-256 26cdfa78d4fb37c12e97c48dd8f5347579b283e47bf0ceff303f6aae85a958fc

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9cb6f909e53d60f6902bf44cf66b705e76cf10925db585d71952776120f429a0
MD5 67a95aa21b54991827a7476c9d7ee675
BLAKE2b-256 74fad7c58cebc5b3810db9080f7eeb88779c291ab5f252310980a4b578fba79c

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a947a270e2f03e27974a0d62e22120e303f0033578551112d1e3a7def77d73c5
MD5 3dfee0152e8eda150afa1a712489e24c
BLAKE2b-256 720ad6e4051126a3467beefd52b7bbea12025576c422c5eb68b104c37573bb96

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17e70e89d542d56a981eb67b1a80db2df54745c6c145812a42ccb5bf618a8f82
MD5 0f5e89bfebf355caa3dc7c60972962c6
BLAKE2b-256 1489e498713d83405dcbfa2b584a0e4d7a8bae7b6e7da3d687f39901cb1a4ce4

See more details on using hashes here.

File details

Details for the file kepler.py-0.0.7-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for kepler.py-0.0.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fd27a74c737da860d178070669d0a9d43e78629cc0d43644dafe622f9eeb17b8
MD5 d373169c9623543ecaf8ab1831fcbb15
BLAKE2b-256 2e5923bd52e79f6046e498d11f73ed8ea9be4a79920322ca0535a501246bd1c4

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