Skip to main content

Crate lib_jsl_number_theory

Crate lib_jsl_number_theory 

Source
Expand description

Number theory: modular arithmetic, primes, factorisation, the Chinese remainder theorem, polynomials and decimal-string integers.

See the book entry Number theory.

Modules§

base_exponent_in_modulus
Modular exponentiation by square-and-multiply.
chinese_remainder_theorem
The Chinese remainder theorem.
greatest_common_divisor
Greatest common divisors and Bézout coefficients by Euclid’s algorithm.
integer_factorization
Factorization of 64-bit integers.
integer_square_root
Exact integer square roots by Newton’s method and by bisection.
multiplicative_inverse_modulo
Modular multiplicative inverses.
polynomial
Polynomial evaluation, construction from roots, and roots by companion-matrix eigenvalues.
primality
Deterministic primality testing for 64-bit integers.
prime_sieves
Prime sieves.
text_coded_integer
Integers of any size stored as decimal digit strings, with schoolbook arithmetic.