Alpha max plus beta min algorithm

The alpha max plus beta min algorithm is a high-speed approximation of the square-root of the sum of two squares. That is to say, it gives the approximate absolute magnitude of a vector given the real and imaginary parts.
The algorithm avoids the necessity of performing the square and square-root operations and instead uses simple operations such as comparison, multiplication and addition. Some choices of the α and β parameters of the algorithm allow the multiplication operation to be reduced to a simple shift of binary digits that is particularly well suited to implementation in high-speed digital circuitry.
The approximation is expressed as:
Where is the maximum absolute value of I or Q and is the minimum absolute value of I or Q.
For the closest approximation, the optimum values for and are 0.96043387 and 0.397824735, giving a maximum error of 3.96%.