Skip to main content

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/isclose with rel_tol/abs_tol kwargs), integer functions (factorial/gcd/lcm/isqrt/comb/perm), fsum, and constants pi/e/tau/inf/nan.
  • Architecture: serp_math is a pure-Serpentine facade over the compiler-known serp_math_core rtlib 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, huge comb/perm/ lcm raise OverflowError); gamma/lgamma/erf/erfc/remainder/prod/dist are not provided yet; hypot takes 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)

Source distribution for serp-math 0.1.0
File Size Uploaded
serp_math-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serp-math 0.1.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page