← All packages

Attitude

star-euler 0.1.0

Euler angles for the twelve sequences, one convention

Public state: Released & Verified. The registry label is RELEASED. What the states mean →

Apache-2.0 Released & Verified single file

Summary

Rotation matrix from three Euler angles and back for the six Tait-Bryan and six proper sequences, with one stated convention (active, intrinsic), gimbal lock detected and reported; agrees with SciPy and NAIF SPICE to 6e-16 on all twelve sequences.

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 69 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:

python -m pip install star_euler-0.1.0-py3-none-any.whl

In Python: import star_euler

Get started →

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_euler_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-euler}: Euler angles for the twelve sequences, one convention},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_euler/},
  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-euler @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_euler"

README · tests · evidence (GitHub)

Technical sheet

Package
star-euler
Import name
star_euler
Version
0.1.0
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.attitude.euler
Maturity
Released & Verified (RELEASED)
Published commit
dc09f61d

Requirements

  • R1 Convention: ACTIVE, INTRINSIC rotations: to_dcm("ZYX", a1, a2, a3) = Rz(a1) Ry(a2) Rx(a3) (turn about Z, then about the new Y, then about the new X). This is SciPy's upper-case sequence; NAIF SPICE eul2m returns the transpose.
  • R2 from_dcm(seq, R): middle angle in [-90, 90] (Tait-Bryan) or [0, 180] (proper), the others in (-180, 180]. At gimbal lock the third angle is returned as 0 and the first carries the whole rotation; is_singular reports it.
  • R3 Measured against SciPy and SPICE for all twelve sequences (720 regular cases, 24 at gimbal lock): matrices within 6e-16 (bit-identical to SPICE), angles within 4e-13 degrees, matrices rebuilt at gimbal lock within 6e-16.
  • R4 Every function returns finite floats or raises ValueError: a sequence that is not one of the twelve (lower case included: it is not guessed), non-numeric, boolean, NaN or infinite input, a matrix of the wrong shape, not orthonormal to 1e-9, or a reflection.

Limits (what is not claimed)

No extrinsic (fixed-axis) sequences as a separate option: reverse the letters and the angles to get them. No angular rates or kinematic equations. Within about 1e-7 degrees of gimbal lock the first and third angles are not separable and only their combination is returned.

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_euler.py 0.940 (2026-10-06)
Independent implementations written by others (needs 2)
NAIF CSPICE eul2m / m2eul (frame rotations, transposed), SciPy Rotation.from_euler / as_euler (intrinsic sequences)
Also compared with, not counted
S.T.A.R.'s own re-derivations: yaw-pitch-roll matrix as printed in flight-dynamics texts
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-06pytest outside the tree: 69 passed in 0.44s
Unit testsVERIFIED2026-10-0669 passed in 0.70s
ReviewVERIFIED2026-10-06Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
ReviewVERIFIED2026-10-06Re-running the cross-check gives a byte-identical evidence file
Reference valueVERIFIED2026-10-06the printed matrix reproduced to 1e-15 for yaw 30, pitch 20, roll 10 degrees and the angles recovered to 1e-12; NAIF eul2m bit-identical after transposition on 744 cases (suite: 69 passed in 0.70s)
Cross-check with independent librariesVERIFIED2026-10-06star_euler agrees with two independent libraries on all twelve Euler sequences and reports gimbal lock
BenchmarkVERIFIED2026-10-06largest difference from SciPy by sequence (matrix entries or degrees): XYX 2.8e-14, XYZ 2.8e-14, XZX 2.8e-14, XZY 8.5e-14, YXY 2.8e-14, YXZ 5.7e-14, YZX 2.8e-14, YZY 2.8e-14, ZXY 5.7e-14, ZXZ 2.8e-14, ZYX 2.8e-14, ZYZ 2.8e-14

Fingerprints (SHA-256)

star_euler-0.1.0-py3-none-any.whlc2ee414f66a5e8ce7ef45b92653da0788ede74cc530dbdb44bcc812795aed052
star_euler.pya43e4c7faa5b0fbc71e02a9076d389eda37416bf772118e52d512fb30f371201
star_euler-0.1.0-source.zipb455eeb0f06ce8d163f21efb5467c7975838a8c948c3634597b3591de19cd1d6

results