Expand description
Contains algorithms for rational reconstruction, i.e. find a small rational number x
from its reduction modulo some n
(coprime to the denominator of x
).
Functionsยง
- balanced_
rational_ reconstruction unstable-enable
- Returns two integers
(a, b)
withb > 0
such thata = bx mod n
. - reduce_
2d_ modular_ relation_ basis unstable-enable
- Uses an optimized version of the LLL algorithm to compute a reduced basis of the lattice