encyclopegia.org

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.[src] The square root of the sum of two squares, also known as Pythagorean addition, is a useful function, because it finds the hypotenuse of a right triangle given the two side lengths, the norm of a 2-D vector, or the magnitude |z| = \sqrt{a^2 + b^2} of a complex number given the real and imaginary parts.[src] The algorithm avoids performing the square and square-root operations, instead using simple operations such as comparison, multiplication, and addition.[src] 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.[src]

The alpha max plus beta min algorithm is a high-speed approximation of the square root of the sum of two squares.[src] The square root of the sum of two squares, also known as Pythagorean addition, is a useful function, because it finds the hypotenuse of a right triangle given the two side lengths, the norm of a 2-D vector, or the magnitude |z| = \sqrt{a^2 + b^2} of a complex number given the real and imaginary parts.[src] The algorithm avoids performing the square and square-root operations, instead using simple operations such as comparison, multiplication, and addition.[src] 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.[src] ==Formulation== The approximation is expressed as |z| = \alpha\,\mathbf{Max} + \beta\,\mathbf{Min}, where \mathbf{Max} is the maximum absolute value of a and b, and \mathbf{Min} is the minimum absolute value of a and b.[src] For the closest approximation, the optimum values for \alpha and \beta are \alpha_0 = \frac{2 \cos \frac{\pi}{8}}{1 + \cos \frac{\pi}{8}} = 1 - \tan^2 \frac{\pi}{16} = 0.960433870103...[src] and \beta_0 = \frac{2 \sin \frac{\pi}{8}}{1 + \cos \frac{\pi}{8}} = 2 \tan \frac{\pi}{16} = 0.397824734759...[src] , giving a maximum error of 3.96%.[src] ==Improvements== When \alpha , |z| becomes smaller than \mathbf{Max} (which is geometrically impossible) near the axes where \mathbf{Min} is near 0.[src] This can be remedied by replacing the result with \mathbf{Max} whenever that is greater, essentially splitting the line into two different segments.[src] |z| = \max(\mathbf{Max}, \alpha\,\mathbf{Max} + \beta\,\mathbf{Min}).[src] Depending on the hardware, this improvement can be almost free.[src] Using this improvement changes which parameter values are optimal, because they no longer need a close match for the entire interval.[src] A lower \alpha and higher \beta can therefore increase precision further.[src] This can be improved even further by, instead of using |z_0| = 1\cdot\mathbf{Max} + 0\cdot\mathbf{Min} as the second estimate, use a second pair of parameters \alpha_0 and \beta_0 , with \alpha_1 and \beta_1 adjusted accordingly.[src] |z| = \max\left(|z_0|, |z_1|\right), |z_0| = \alpha_0\,\mathbf{Max} + \beta_0\,\mathbf{Min}, |z_1| = \alpha_1\,\mathbf{Max} + \beta_1\,\mathbf{Min}.[src] Of course, a non-zero \beta_0 requires at least one extra addition and some bit-shifts (or a multiplication), nearly doubling the cost and, depending on the hardware, possibly defeating the purpose of using an approximation in the first place.[src] ==See also== Hypot, a precise function or algorithm that is also safe against overflow and underflow.[src] ==References== Lyons, Richard G.[src] Understanding Digital Signal Processing, section 13.2.[src] Prentice Hall, 2004 .[src] Griffin, Grant.[src] DSP Trick: Magnitude Estimator.[src] ==External links==[src]

28 sentences · 28 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Alpha max plus beta min algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/alpha-max-plus-beta-min-algorithm. Accessed 29 November 2026.

Chicago

"Alpha max plus beta min algorithm." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/alpha-max-plus-beta-min-algorithm.

APA

encyclopegia.org. (2026). Alpha max plus beta min algorithm. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/alpha-max-plus-beta-min-algorithm

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Alpha Cephei

stub · references available

Alpha Pegasi

stub · references available

Alpha Centauri Bb

stub · references available

Max von Laue

stub · references available

Max Born

stub · references available

Max Jakob Friedländer

stub · references available

Max Wissel

stub · references available

Max Bauer

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1363723976 · 0.5 · snapshot enwiki-001363723976

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.