Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Square root algorithms

Numerical Algorithm

Square root algorithms compute the non-negative square root of a positive real number. Because the square roots of natural numbers that are not perfect squares are irrational, these algorithms usually build a series of increasingly accurate approximations rather than an exact answer. Most of them are iterative: they choose an initial estimate and refine it until a termination criterion is met, with Heron's method, a special case of Newton's method, as one common choice. Other approaches work digit by digit, use Taylor series or use continued fraction expansions, and when division is much costlier than multiplication it can be better to compute the inverse square root instead. The method chosen depends on the accuracy needed and the tools available, and procedures for the square root of 2 are known from ancient Babylon in the 17th century BCE.

Connections

In Field

Source Square root algorithms (Wikipedia)

Uses Design Technique

Source Square root algorithms (Wikipedia)
Sources
Square root algorithms (Wikipedia)
  • In Field: Algorithms and Complexity Theory, Lead section
    Square root algorithms compute the non-negative square root
  • In Group: Root-Finding and Optimization, Lead section
    Square root algorithms compute the non-negative square root
  • Uses Design Technique: Iterative Refinement, Lead section [design-technique-used]
    an iterative refinement is performed until some termination criterion is met
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.