Module roots

Source

MacrosΒ§

signed_roots πŸ”’
unsigned_roots πŸ”’

TraitsΒ§

Roots
Provides methods to compute an integer’s square root, cube root, and arbitrary nth root.

FunctionsΒ§

bits πŸ”’
cbrt
Returns the truncated principal cube root of an integer – see Roots::cbrt.
fixpoint πŸ”’
log2 πŸ”’
nth_root
Returns the truncated principal nth root of an integer – see Roots::nth_root.
sqrt
Returns the truncated principal square root of an integer – see Roots::sqrt.