A Python port from Quake 3's fast inverse square root algorithm
Project description
quake 3's fastest inverse square root
This module is a port from Quake 3's inverse square root algorithm.
Installation
- Get yourself a C compiler (like gcc, clang or msvc)
- Run
python setup.py install
- Enjoy!
Build
- Get yourself a C compiler (like gcc, clang or msvc)
- Run
python setup.py build bdist_wheel sdist
- Check the
dist
folder for the wheel and source distribution
Documentation
quake_inverse_sq.coarse_inv_sqrt(number: float) -> float
This is fastest inverse square root algorithm. It is not as accurate as the quake_inverse_sq.fined_inv_sqrt
function, but it is much faster. It is implemented from this wikipedia
quake_inverse_sq.fined_inv_sqrt(number: float) -> float
This is the original inverse square root algorithm. It is more accurate than the quake_inverse_sq.coarse_inv_sqrt
function, but it is slower. It is implemented from math.h
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
Built Distributions
File details
Details for the file quake-inverse-squareroot-0.0.4.tar.gz
.
File metadata
- Download URL: quake-inverse-squareroot-0.0.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f86835dd8afa1c2af777afb0e1ae48437202d91cf7260ae77550a49988174606 |
|
MD5 | 09d6f9bb87f257385f1a64efcd55a030 |
|
BLAKE2b-256 | 255e9e6516e452360df04824051f9cb130f89938ac6e3ba996e8612a9d7439e0 |
File details
Details for the file quake_inverse_squareroot-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee428f1eac62104b76f44a2d1ac215faecfbf2d67b49c0dc0ec8f03ac587113 |
|
MD5 | 28482699177634a276b7a673ba4dea77 |
|
BLAKE2b-256 | b7ec1c98c100574405e6dd17988ae96e3fe24482b25f90897eba0e20cc1a9e6d |
File details
Details for the file quake_inverse_squareroot-0.0.4-pp39-pypy39_pp73-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-pp39-pypy39_pp73-win_amd64.whl
- Upload date:
- Size: 69.4 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2662bd9e0db2ff9950297edc28b80e878a011a770a1b143ca2927852f92d08de |
|
MD5 | b806036186603fe336c09d6def5429e3 |
|
BLAKE2b-256 | aed2f973aef09826d253fbae546980c8fb04de5bf10cb9ca6b8f63fa25794e88 |
File details
Details for the file quake_inverse_squareroot-0.0.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 18.7 kB
- Tags: PyPy, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17c649543acbf3efb6379b758e8f7091e428a3d2134e368c2db71b4450e3c935 |
|
MD5 | 92b49cc651f57c6539ad06d97f229e4f |
|
BLAKE2b-256 | 63095edaad4256654df90d7a2a6cdbda10cf75448fc53cba9bcf118819f82e52 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 70.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036800f60f5dd4d5bb543c70800a7a8a45f3074c3304c6bf36f735b16aad6dcf |
|
MD5 | c3e5731e7ebd7694d35e1fc64f6679b6 |
|
BLAKE2b-256 | 1dc00f299eda40b7ec1ccf76028641ba8f8635a156b483d69bea89b4326b7111 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 32.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 299e1eab234297dbc5e647853342dc86d987938320c32335879378f4461a78a9 |
|
MD5 | f25122c3cf27ec47b5e4d0483575468f |
|
BLAKE2b-256 | ed51076d8f4ad2354de5c5b595b840143ec707ca6d32fa9edf5af35f181fc695 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 71.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edcae917040f8f15d16cd7b7648521d3160d68c58fd30ecf9f8777cbd656e86e |
|
MD5 | 967de8f9746e88e14a17b4d566dcc842 |
|
BLAKE2b-256 | aaaf745d76da5f12e66f79a7296987464804a6231b0559006b585347d9f116f5 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 31.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5876319de461a43bad8f95d296acdd49673fe345fec5551aa53a25b46295bd04 |
|
MD5 | c695ee3ce69207e2b27a4be7bf610a5e |
|
BLAKE2b-256 | 18780470404e703a5f059086222311c32112972e5b7d6ed8e8b070d5f9ad652f |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 69.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85ddc250c8ff477f764d36edd2c5c4c9c5bca1c03b148a0563b6842a8aa9dd7a |
|
MD5 | 9907430fda3fb333d2b025d6fe2e9a2f |
|
BLAKE2b-256 | 4d8826ecbc2d7ed730c8c1d4dba7fde412373b421d12e8fb6a44f5c3d31a83d7 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 30.7 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dabec1c10e132ec08f2d65103d9a5740638d2008a3b0e419620cc9ec3c0f6e73 |
|
MD5 | a436e650cbe1bcda797d1f7ef8c29df9 |
|
BLAKE2b-256 | 8abc09cbdec1ce7cf47692bed10599fb03954008e5725677b54f1dabdf5a775b |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 71.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e363b84b94127dd7ad49f98c48115f59c62209c34eafdb311928d5259c9983c6 |
|
MD5 | e661322790b39a9bbb32efdd72fdbee3 |
|
BLAKE2b-256 | e50ed4c04ef6968d51ff69c518f23735449b8b64ca8826184a582d0c0ca95a8b |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 31.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52332f71f2e1880cef1c86642087a389ff67bcebd74d7a83d0555bffe2cad2d8 |
|
MD5 | b4a0f98f4f59e929b71867cd7a41a2de |
|
BLAKE2b-256 | abc03fcd83cb2bb6aea1e0443a1a82036f87438e662b2e5babb90aa941e5db16 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 68.7 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a954bcf559c27809f0f35b86c337803029b35f3187ee87af60ffe2313dccad |
|
MD5 | 0771b95616ec15cab21f32b0ca9d4186 |
|
BLAKE2b-256 | a5275b8cb99b3241004b1dae1d858b4b0bf93a99be48a2ad715b1561edaa9626 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 33.1 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9beeb12e154d6507bb16347efad08218ec871def941d1589d0de740bf0bf5e3f |
|
MD5 | ba245852fa381772b7de2023ca850b39 |
|
BLAKE2b-256 | d35abfe980ab152356480c467eb4ab67b1dddc1322073d7c3047f4822140fbd6 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 67.7 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f7d751aa49d0be82149aad13ca79515d74100e95c1c7547dd51d9d434c5564 |
|
MD5 | 1694469694e1ff916694e5bdd4d19755 |
|
BLAKE2b-256 | be81e8fd0f3b6b3ec5208f2631948becb3c5dc977b68bc0fe055b34a00b2557b |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 31.3 kB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53d03bb9381349a875e7864f23e81ad40655ef87336ba7651dcb537db0a51c45 |
|
MD5 | 08b0e860563dbc5bd719370a3bcc22d0 |
|
BLAKE2b-256 | 000329b81d7e9ade826d6be132002cc2290f9db09aff1745135e797be5456268 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 67.5 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f07c0a0617814ba6cfa22560f0c194c2af0ac0bec56d3593b0746208e6ffe7 |
|
MD5 | 59f81b9e91d2598483d56fdda161fb0d |
|
BLAKE2b-256 | 7d7eec08b51333ce7810061e0ebdbfe7d035c30a71dfab0af891fed5ed355f35 |
File details
Details for the file quake_inverse_squareroot-0.0.4-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: quake_inverse_squareroot-0.0.4-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 30.8 kB
- Tags: CPython 3.5m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68bf3b404a276de698620cced9c960a6f535c3aac8bafec85a265b7fb238e8e |
|
MD5 | 48c73f5070a9200c39ac186e6b2ec0c8 |
|
BLAKE2b-256 | 1beaaf34396318a595879d719a2c927076e2b570664da0e18a19eddc33d0e52f |