Skip to main content

fmath

A library for Python for fast math on floats.

See the demo for Windows and the demo for Linux.

Installation

From PyPI

pip3 install fmath

From GitHub

pip3 install git+https://github.com/donno2048/fmath

Usage

Just replace

from math import sqrt, log2
pow = pow
abs = abs
min = min
max = max
sign = lambda x: x >= 0

with

from fmath import sqrt, pow, abs, sign, log2, min, max

and make sure the input is float

Metadata

Release files for fmath 1.0.3

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

Source distribution (sdist)

Source distribution for fmath 1.0.3
File Size Uploaded Provenance Actions
fmath-1.0.3.tar.gz 3.2 kB Without provenance Details for fmath-1.0.3.tar.gz

Release files / fmath-1.0.3.tar.gz

Download URL fmath-1.0.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1d755deea591075e92dd521a3ae16c2ccd1683877d3881675f4fc50eb8b4b4b
BLAKE2b-256 checksum
How to use checksums
f94fbe47b25bd27ce4f636e6dc624433fcb5070f8e09e8da5bfcf57eb1affafa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for fmath 1.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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