An attempt to port Quake's fast inverse square root to JS. Do not ever use this.
npm install rsqrt
console.log(require("rsqrt")(100.0)) //Prints out approximately 0.1
Computes an approximation for
1.0 / Math.sqrt(number)
Should I ever use this?
1.0 / Math.sqrt is at least twice as fast.
Why did you publish this?
To warn others.
(c) 2013 Mikola Lysenko. MIT License