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

Installation

From PyPI

pip3 install fmath

From GitHub

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

Usage

Just replace

from math import sqrt
pow = pow
abs = abs
sign = lambda x: x >= 0

with

from fmath import sqrt, pow, abs, sign

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.1.tar.gz (2.9 kB view hashes)

Uploaded Source

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