Expand description
Exact integer square roots by Newton’s method and by bisection.
See the book entry Divisibility and modular arithmetic.
Functions§
- integer_
square_ root_ binary_ search - Computes the integer square root of a
u128using binary search (efficient, but slower) - integer_
square_ root_ newton - Computes the integer square root of a
u128using the Newton–Raphson method (faster)