Closed soegaard closed 2 years ago
Note that GMP is LGPL-licensed, so we probably don't want to copy the algorithm in here.
The idea was to call the bezout function via the FFI and scratch the Racket implementation. Since we want to avoid GMP, it wasn't the best idea - so I'll close this issue. The algorithm used presently is standard text book.
Using the FFI to libgmp is quite reasonable; especially since this library already does that in other places. I was only referring to copying the code.
Use
bezout
from gmp rather than compute it ourselves.https://github.com/racket/math/blob/58f5d6205abeec854b47a6c70d613089f108bceb/math-lib/math/private/number-theory/divisibility.rkt#L35