serp-math
Drop-in replacement for CPython's math module (docs/libraries.md drop-in facade push).
- 60+ stdlib-identical names: trig/hyperbolic (
sin..atanh), exp/log families (exp/exp2/expm1/log/log10/log2/log1p,log(x, base)supported),sqrt/cbrt/pow, rounding (floor/ceil/trunc), float helpers (fabs/copysign/fmod/ldexp/frexp/modf/ nextafter/ulp/hypot), predicates (isnan/isinf/isfinite/isclosewithrel_tol/abs_tolkwargs), integer functions (factorial/gcd/lcm/isqrt/comb/perm),fsum, and constantspi/e/tau/inf/nan. - Architecture:
serp_mathis a pure-Serpentine facade over the compiler-knownserp_math_corertlib module (runtime primitives in rt.rs/prelude.rs with CPython-parity errors:ValueError("math domain error"),OverflowError("math range error")). - Divergences: integer results cap at int64 (
factorial> 20, hugecomb/perm/lcmraise OverflowError);gamma/lgamma/erf/erfc/remainder/prod/distare not provided yet;hypottakes exactly two coordinates.
Install into a Serpentine project with serp add serp-math.
Metadata
Release files for serp-math 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serp_math-0.1.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serp_math-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / serp_math-0.1.0.tar.gz
| Download URL | serp_math-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa9dbc22c3e78fdb2029299a0497f20029f1d957251e5533d17812dc097d1b5f
|
|
BLAKE2b-256 checksum How to use checksums |
e65f4c06154789e8813e8173881db6d2e779755c2043e10446217e83709e9451
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / serp_math-0.1.0-py3-none-any.whl
| Download URL | serp_math-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec9b094e7100ed6800a01ed46d6dcb839868c632cfcd97b4c8faf05b2fea6108
|
|
BLAKE2b-256 checksum How to use checksums |
61651b7499da24d9f76de4f4721d13dee9c548e53e236158b6d03409059cc1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency log