Global Information Lookup Global Information

Fast inverse square root information


Lighting and reflection calculations, as in the video game OpenArena, use the fast inverse square root code to compute angles of incidence and reflection.

Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF, is an algorithm that estimates , the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number in IEEE 754 floating-point format. The algorithm is best known for its implementation in 1999 in Quake III Arena, a first-person shooter video game heavily based on 3D graphics. With subsequent hardware advancements, especially the x86 SSE instruction rsqrtss, this algorithm is not generally the best choice for modern computers,[1] though it remains an interesting historical example.[2]

The algorithm accepts a 32-bit floating-point number as the input and stores a halved value for later use. Then, treating the bits representing the floating-point number as a 32-bit integer, a logical shift right by one bit is performed and the result subtracted from the number 0x5F3759DF, which is a floating-point representation of an approximation of .[3] This results in the first approximation of the inverse square root of the input. Treating the bits again as a floating-point number, it runs one iteration of Newton's method, yielding a more precise approximation.

  1. ^ Cite error: The named reference ruskin was invoked but never defined (see the help page).
  2. ^ Cite error: The named reference z88dk was invoked but never defined (see the help page).
  3. ^ Cite error: The named reference mrob was invoked but never defined (see the help page).

and 24 Related for: Fast inverse square root information

Request time (Page generated in 0.9119 seconds.)

Fast inverse square root

Last Update:

Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF, is an algorithm that estimates 1 x {\textstyle...

Word Count : 4544

Methods of computing square roots

Last Update:

may be preferable to compute the inverse square root instead. Other methods are available to compute the square root digit by digit, or using Taylor series...

Word Count : 11670

Quake III Arena

Last Update:

with approximately 9,400 active players in 2018. Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF...

Word Count : 5943

OpenAI Codex

Last Update:

example the model outputted the training data code implementing the fast inverse square root algorithm, including comments and an incorrect copyright notice...

Word Count : 1306

Inverse function

Last Update:

function is bijective and so, invertible. The inverse function here is called the (positive) square root function and is denoted by x ↦ x {\displaystyle...

Word Count : 5144

Undefined value

Last Update:

undefined behaviour. For example, passing a negative number to the fast inverse square root function will produce a number. Not a very useful number, but the...

Word Count : 1291

Id Tech 3

Last Update:

calculation of these shaders, id Tech 3 implements a specific fast inverse square root function, which attracted a significant amount of attention in...

Word Count : 3316

Metaballs

Last Update:

{\displaystyle (x_{0},y_{0},z_{0})} is the center of the metaball. The fast inverse square root technique may be used in this calculation. Various other falloff...

Word Count : 773

Invertible matrix

Last Update:

information. Binomial inverse theorem LU decomposition Matrix decomposition Matrix square root Minor (linear algebra) Partial inverse of a matrix Pseudoinverse...

Word Count : 6926

Significand

Last Update:

allows for a fast approximation of the base-2 logarithm, leading to algorithms e.g. for computing the fast square-root and fast inverse-square-root. The implicit...

Word Count : 1418

Type punning

Last Update:

Practical examples of floating-point punning include fast inverse square root popularized by Quake III, fast FP comparison as integers, and finding neighboring...

Word Count : 2106

Cube root

Last Update:

radical sign     3 . {\displaystyle {\sqrt[{3}]{~^{~}}}.} The cube root is the inverse function of the cube function if considering only real numbers, but...

Word Count : 1972

Tetration

Last Update:

and complex numbers. The two inverses of tetration are called super-root and super-logarithm, analogous to the nth root and the logarithmic functions...

Word Count : 6893

John Carmack

Last Update:

first used in Enemy Territory: Quake Wars. Quake 3 popularized the fast inverse square root algorithm. Carmack's engines have also been licensed for use in...

Word Count : 4455

Inverse trigonometric functions

Last Update:

the principal branch of the natural log and square root functions to the usual principal branch of the inverse trig functions, the particular form of the...

Word Count : 10716

List of numerical analysis topics

Last Update:

y2)1/2 Alpha max plus beta min algorithm — approximates hypot(x,y) Fast inverse square root — calculates 1 / √x using details of the IEEE floating-point system...

Word Count : 8344

Triangle wave

Last Update:

than in a square wave (proportional to the inverse square of the harmonic number as opposed to just the inverse). A triangle wave of period p that spans...

Word Count : 978

Strength reduction

Last Update:

expensive computation (3 ** x) to be replaced by the cheaper (3 * z). Fast inverse square root Hacker's Delight Partial evaluation Steven Muchnick; Muchnick and...

Word Count : 2992

Root of unity

Last Update:

inverse golden ratio and minus golden ratio. For n = 8, for any root of unity z + z equals to either 0, ±2, or ±√2 (D = 2). For n = 12, for any root of...

Word Count : 5939

Fast Fourier transform

Last Update:

A Fast Fourier Transform (FFT) is an algorithm that computes the Discrete Fourier Transform (DFT) of a sequence, or its inverse (IDFT). Fourier analysis...

Word Count : 7355

Jacobian matrix and determinant

Last Update:

According to the inverse function theorem, the matrix inverse of the Jacobian matrix of an invertible function is the Jacobian matrix of the inverse function...

Word Count : 3549

Discrete Fourier transform over a ring

Last Update:

attributes of the complex DFT, including the inverse transform, the convolution theorem, and most fast Fourier transform (FFT) algorithms, depend only...

Word Count : 2816

List of mathematical abbreviations

Last Update:

arccos – inverse cosine function. arccosec – inverse cosecant function. (Also written as arccsc.) arccot – inverse cotangent function. arccsc – inverse cosecant...

Word Count : 1983

Discrete Fourier transform

Last Update:

crucially on the availability of a fast algorithm to compute discrete Fourier transforms and their inverses, a fast Fourier transform. When the DFT is...

Word Count : 10510

PDF Search Engine © AllGlobal.net