Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quake-inverse-squareroot

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quake-inverse-squareroot

A Python port from Quake 3's fast inverse square root algorithm

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc