Skip to main content

Module integer_square_root

Module integer_square_root 

Source
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 u128 using binary search (efficient, but slower)
integer_square_root_newton
Computes the integer square root of a u128 using the Newton–Raphson method (faster)