Skip to main content

Ultra-accurate and fast double-double FM_new approximation with ≤1 ULP guarantees

Project description

accurpy

Ultra-accurate and fast double-double (106-bit) approximation for the new FM function. The C extension ships a single FMA-enabled pipeline validated to stay within 1 ULP versus high-precision references, and a pure-Python double-double fallback is provided when the extension is unavailable.

Install

pip install accurpy

Usage

import numpy as np
from accurpy import syncF

y = syncF(10.0, skip_exp=False)

x = np.geomspace(1e-12, 300.0, 1_000_000)
y_vec = syncF(x, skip_exp=True)

Notes

  • Scalar calls and NumPy arrays both dispatch to the fast C implementation when available.
  • When the extension cannot be imported, the package falls back to the same algorithm implemented in pure Python double-double arithmetic (slower, but numerically identical).

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accurpy-0.1.5.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

accurpy-0.1.5-cp313-cp313-win_amd64.whl (21.9 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file accurpy-0.1.5.tar.gz.

File metadata

  • Download URL: accurpy-0.1.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for accurpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 899b167fa09ce8ebb6d407fb9f07b5e408c27ebd8f06f7f2709b26c9399fe05f
MD5 c2c34e7b765c4d6a83089de633c8cef7
BLAKE2b-256 d7e006f138cbe2b591d0b3063a67581a152a71389339adcc8cb2cfabd4e48468

See more details on using hashes here.

File details

Details for the file accurpy-0.1.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: accurpy-0.1.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for accurpy-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5d6e8c97bdbb11cfa85b81df8962a5c16ab58de61fe8dcc91f633258d632e655
MD5 4df694ffa26c3640494508cad3396fde
BLAKE2b-256 f24a771584e7661de9b5fea7a9383c77c7812d6d96e0d5b73319c09cd5ad596c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page