Skip to main content

libm-ext

A Python package wrapping the essential mathematical special functions in libm-ext with vectorized support.

License: MIT OR Apache-2.0 PyPI

Trigonometric functions

  • sinpi / sinpif for $\sin(\pi x)$ (double-precision / single-precision)
  • cospi / cospif for $\cos(\pi x)$ (double-precision / single-precision)
  • sincospi / sincospif for $\sin(\pi x)$ and $\cos(\pi x)$ (double-precision / single-precision)

Usage

Scalar functions

from libm_ext import sinpi, cospi, sincospi

sinpi(1.0)
cospi(1.0)
sincospi(1.0)

Vectorized functions with NumPy ndarray

import numpy as np
from libm_ext.vectorized import sinpi, cospi

x = np.random.standard_normal(16000)
sinpi(x)
cospi(x)

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Metadata

Release files for libm-ext 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libm-ext 0.0.2
File Size Uploaded Provenance Actions
libm_ext-0.0.2.tar.gz 35.3 kB With provenance Details for libm_ext-0.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for libm-ext 0.0.2
File Actions
libm_ext-0.0.2-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details for libm_ext-0.0.2-cp314-cp314t-win_arm64.whl
libm_ext-0.0.2-cp313-cp313t-win_arm64.whl CPython 3.13 CPython 3.13 free-threading Windows ARM64 Details for libm_ext-0.0.2-cp313-cp313t-win_arm64.whl
libm_ext-0.0.2-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details for libm_ext-0.0.2-cp311-abi3-win_arm64.whl
libm_ext-0.0.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for libm_ext-0.0.2-cp311-abi3-win_amd64.whl
libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl
libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl
libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl
libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 2.4 MB

Release files / libm_ext-0.0.2.tar.gz

Download URL libm_ext-0.0.2.tar.gz
Size 35.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1732d97bd6ca2621b4ca2a9d75f5d9e6b9f1dc4ce8bf8bc478562b62ec96e814
BLAKE2b-256 checksum
How to use checksums
a8fe0461a478c5e4b111f5141db63446f4f02e55599cb6b630ad9f609708f01b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp314-cp314t-win_arm64.whl

Download URL libm_ext-0.0.2-cp314-cp314t-win_arm64.whl
Size 207.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
19d43fcf9662c473714898d3ae88750430b5b61ad89d4ea396334ea2378c074b
BLAKE2b-256 checksum
How to use checksums
7f4974938e9e558670e8baa804c419bc073f657b08887ee31df34ea524a8cf4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp313-cp313t-win_arm64.whl

Download URL libm_ext-0.0.2-cp313-cp313t-win_arm64.whl
Size 207.7 kB
Tags CPython 3.13 CPython 3.13 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
8891d93e455a0bfa9e9e1a3bd7a4fd02a26afd76ec69935dc4b7f8ef5cc49d94
BLAKE2b-256 checksum
How to use checksums
ac1556eeb5763243c360f57434cbe3d5462129bbf1d0a0504106536fca58dbe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-win_arm64.whl

Download URL libm_ext-0.0.2-cp311-abi3-win_arm64.whl
Size 210.0 kB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
d76e34aa77819ec9dcda643ab7387c93aa168a35f8e05c1c718bf1be9301be43
BLAKE2b-256 checksum
How to use checksums
19e7f403989894349a83fac5e6bd7ca61af60882fc847017f89de9d104688ff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-win_amd64.whl

Download URL libm_ext-0.0.2-cp311-abi3-win_amd64.whl
Size 219.0 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f13102696dd84d0533cf52c605ecac8a60d464d86c253114521e6a72b97e5fc7
BLAKE2b-256 checksum
How to use checksums
6d91f3961b1eae0752686b3c50d37e6f31572acd3642a85379f5ffc5519bec7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl
Size 412.5 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
e6d9db267bdd7d3b264fb8d6f42a9bf887186b2e8a3333f6ed079e0bd5b8a03b
BLAKE2b-256 checksum
How to use checksums
cde9eae0e32607357a627cc46530e0e81fc813a97585d16f00c04f53bf7c0a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl
Size 397.0 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
59336c76c8a0de3335199417faa3d3ac769271b121fad7ca7635bd7128d1e9ef
BLAKE2b-256 checksum
How to use checksums
dfe77d4d0316c26e58bab73861d6c8d340dd42cf225ae5ee861e78978c058a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl
Size 345.2 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf279064f27d96ab6a26c4bca4cbf55e1ab379ca52ee251b29856b2c13a00ff8
BLAKE2b-256 checksum
How to use checksums
30fd141b36381ae49db64c982e51d6c904535cb5025e0c68e9261b6ac5a55258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 353.3 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
385e9eb3d0eed74869d48b0ed0ac85c24614300b2a7f49a3049fec178cb182e9
BLAKE2b-256 checksum
How to use checksums
02f803e7df92b6110d7e38c163396e24e7a5ac4f9d6d64c87df412cd3f24f9b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Security for libm-ext 0.0.2

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.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for libm_ext-0.0.2.tar.gz

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 Dec 21, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

9 release files Full provenance

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