Skip to main content

A library for Python for fast math on floats

Project description

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

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

fmath-1.0.3.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file fmath-1.0.3.tar.gz.

File metadata

  • Download URL: fmath-1.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fmath-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e1d755deea591075e92dd521a3ae16c2ccd1683877d3881675f4fc50eb8b4b4b
MD5 0141a8ede6fd6d7029a042b04870fc72
BLAKE2b-256 f94fbe47b25bd27ce4f636e6dc624433fcb5070f8e09e8da5bfcf57eb1affafa

See more details on using hashes here.

Supported by

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