Skip to main content

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

  1. Get yourself a C compiler (like gcc, clang or msvc)
  2. Run python setup.py install
  3. Enjoy!

Build

  1. Get yourself a C compiler (like gcc, clang or msvc)
  2. Run python setup.py build bdist_wheel sdist
  3. 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

quake-inverse-squareroot-0.0.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distributions

quake_inverse_squareroot-0.0.4-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

quake_inverse_squareroot-0.0.4-pp39-pypy39_pp73-win_amd64.whl (69.4 kB view hashes)

Uploaded PyPy Windows x86-64

quake_inverse_squareroot-0.0.4-cp311-cp311-win_amd64.whl (70.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

quake_inverse_squareroot-0.0.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl (32.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp310-cp310-win_amd64.whl (71.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

quake_inverse_squareroot-0.0.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (31.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp39-cp39-win_amd64.whl (69.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

quake_inverse_squareroot-0.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (30.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp38-cp38-win_amd64.whl (71.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

quake_inverse_squareroot-0.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (31.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp37-cp37m-win_amd64.whl (68.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

quake_inverse_squareroot-0.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (33.1 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp36-cp36m-win_amd64.whl (67.7 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

quake_inverse_squareroot-0.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (31.3 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

quake_inverse_squareroot-0.0.4-cp35-cp35m-win_amd64.whl (67.5 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

quake_inverse_squareroot-0.0.4-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (30.8 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.5+ x86-64

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