# fmath
A library for Python for fast math on floats.
See the [demo for Windows](./TestWindows.ipynb) and the [demo for Linux](./TestLinux.ipynb).
## Installation
### From PyPI
```sh
pip3 install fmath
```
### From GitHub
```sh
pip3 install git+https://github.com/donno2048/fmath
```
## Usage
Just replace
```py
from math import sqrt, log2
pow = pow
abs = abs
min = min
max = max
sign = lambda x: x >= 0
```
with
```py
from fmath import sqrt, pow, abs, sign, log2, min, max
```
and make sure the input is `float`
Raw data
{
"_id": null,
"home_page": "https://github.com/donno2048/fmath",
"name": "fmath",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": null,
"keywords": null,
"author": "Elisha Hollander",
"author_email": "just4now666666@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f9/4f/be47b25bd27ce4f636e6dc624433fcb5070f8e09e8da5bfcf57eb1affafa/fmath-1.0.3.tar.gz",
"platform": null,
"description": "# fmath\n\nA library for Python for fast math on floats.\n\nSee the [demo for Windows](./TestWindows.ipynb) and the [demo for Linux](./TestLinux.ipynb).\n\n## Installation\n\n### From PyPI\n\n```sh\npip3 install fmath\n```\n\n### From GitHub\n\n```sh\npip3 install git+https://github.com/donno2048/fmath\n```\n\n## Usage\n\nJust replace\n\n```py\nfrom math import sqrt, log2\npow = pow\nabs = abs\nmin = min\nmax = max\nsign = lambda x: x >= 0\n```\n\nwith\n\n```py\nfrom fmath import sqrt, pow, abs, sign, log2, min, max\n```\n\nand make sure the input is `float`\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A library for Python for fast math on floats",
"version": "1.0.3",
"project_urls": {
"Bug Reports": "https://github.com/donno2048/fmath/issues",
"Documentation": "https://github.com/donno2048/fmath#readme",
"Homepage": "https://github.com/donno2048/fmath",
"Source Code": "https://github.com/donno2048/fmath"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f94fbe47b25bd27ce4f636e6dc624433fcb5070f8e09e8da5bfcf57eb1affafa",
"md5": "0141a8ede6fd6d7029a042b04870fc72",
"sha256": "e1d755deea591075e92dd521a3ae16c2ccd1683877d3881675f4fc50eb8b4b4b"
},
"downloads": -1,
"filename": "fmath-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "0141a8ede6fd6d7029a042b04870fc72",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 3210,
"upload_time": "2024-08-06T16:24:54",
"upload_time_iso_8601": "2024-08-06T16:24:54.419046Z",
"url": "https://files.pythonhosted.org/packages/f9/4f/be47b25bd27ce4f636e6dc624433fcb5070f8e09e8da5bfcf57eb1affafa/fmath-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-06 16:24:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "donno2048",
"github_project": "fmath",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "fmath"
}