star-lambert 0.1.3
Universal-variable Lambert orbital boundary value problem solver
Public state: Beta. The registry label is VERIFIED. What the states mean →
Apache-2.0 Beta single file
Summary
Zero-revolution solver for Lambert's problem (universal variables, Stumpff functions, Newton on z; Bate-Mueller-White / Curtis Algorithm 5.2). Standard library only.
Run in your browser
Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).
Runs in the browser: all 118 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026.
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_lambert-0.1.3-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_lambert.py 5 kB
- Source code (.zip) 23 kB
python -m pip install star_lambert-0.1.3-py3-none-any.whlIn Python: import star_lambert
Cite it, and its bill of materials
For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.
@software{cavazzini_star_lambert_0_1_3,
author = {Cavazzini, Andrea},
title = {{star-lambert}: Universal-variable Lambert orbital boundary value problem solver},
version = {0.1.3},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_lambert/},
note = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}
For developers
Install directly from the public repository:
python -m pip install "star-lambert @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_lambert"
Technical sheet
Requirements
- R1
lambert(r1, r2, tof, mu=398600.4418, prograde=True) -> (v1, v2): velocities at r1 and r2 for a transfer of durationtof. Units: km, s, km/s, km^3/s^2. - R2 Never return an unconverged result:
RuntimeErrorinstead. - R3 Invalid input fails explicitly:
ValueErrorfor tof <= 0, zero position vectors, degenerate geometry (0 or 180 deg).
Limits (what is not claimed)
Multi-revolution transfers; transfer angles within 1e-8 rad of 0 or 180 deg (refused: the transfer plane is not defined); any statement of flight qualification.
Release gate
Computed by the registry from the result files, with the same function that decides RELEASED.
- Mutation score, latest measure of each module (needs at least 0.850)
- star_lambert.py 0.924 (2026-10-07)
- Independent implementations written by others (needs 2)
- Izzo 2015 (hapsira)
- Also compared with, not counted
- S.T.A.R.'s own re-derivations: universal variables (BMW/Curtis)
- Result
- Beta
Missing: another independent implementation written by others (now 1 of 2)
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-07 | pytest outside the tree: 118 passed in 0.80s |
| Clean install from the release tag | VERIFIED | 2026-10-05 | pytest outside the tree: 67 passed in 0.56s |
| Clean install from the release tag | VERIFIED | 2026-10-04 | pytest outside the tree: 22 passed in 0.43s |
| Mutation testing | VERIFIED | 2026-10-04 | 177/213 = 0.8318 |
| Mutation testing | VERIFIED | 2026-10-04 | 100/214 = 0.4673 -> 164/214 = 0.7664 after survivor-driven tests |
| Review | VERIFIED | 2026-10-03 | Re-execution of bench.xc-006 reproduces the committed evidence bundles |
| Cross-check with independent libraries | VERIFIED | 2026-10-03 | universal variables vs Izzo agree to 1.3e-14 km/s |
| Benchmark | VERIFIED | 2026-10-03 | 21/21 AGREE |
| Unit tests | VERIFIED | 2026-10-03 | 3/3 |
| Review | VERIFIED | 2026-10-03 | No runtime dependencies; imports only math and typing; no IO, network, subprocess or eval |
| Review | VERIFIED | 2026-10-03 | Requirements R1-R3, single documented public function, explicit units, standard GM default |
| Review | VERIFIED | 2026-10-03 | Invalid input and non-convergence fail explicitly |
| Unit tests | FAILED | 2026-10-03 | returns None, 0/3 |
| Reference value | VERIFIED | 2026-10-03 | [-5.9925, 1.9254, 3.2456] |
| Clean install from the release tag | VERIFIED | 2026-10-03 | v1, v2 = ((-5.992495, 1.925366, 3.245638), (-3.312458, -4.196619, -0.385289)), 3/3 tests pass |
Fingerprints (SHA-256)
| star_lambert-0.1.3-py3-none-any.whl | 63f57331a607fc0f006e8b36d3e32c4aa7d74f29bb3396a25c2268f079ce81ef |
| star_lambert.py | 4ba3d54d17e13b3267d6b010e064ef286298fa181ba23af5111c3531b93fac76 |
| star_lambert-0.1.3-source.zip | 0fc53dbbbc9dc8a7ada932e8db1096a0b45416746c4813da1db57e56f02c6b62 |
