Module reform::number[][src]

Enums

Number

A number is either a small number consisting of machine sized integers or a big number, using GMP.

Functions

chinese_remainder

Use Garner's algorithm for the Chinese remainder theorem to reconstruct an x that satisfies n1 = x % p1 and n2 = x % p2. The x will be in the range [-p1p2/2,p1p2/2].