Hello John,
As far as I'm aware, there is no function for Bézout's identity with 2+
arguments in FLINT. However, you could create one recursively as follows.
Suppose a1, ..., an are integers. Then there exists integers x1 and x2
such that
x1 a1 + x2 a2 = gcd(a1, a2).
Then there exists integers y1 and y2 such that
y1 gcd(a1, a2) + y2 a3 = gcd(gcd(a1, a2), a3)
y1 (x1 a1 + x2 a2) + y2 a3 = gcd(a1, a2, a3)
(x1 y1) a1 + (x2 y1) a2 + y2 a3 = gcd(a1, a2, a3).
Of course, you can extend this to how many inputs you'd like.
It would be a good idea to have a generalized extended Euclidean
algorithm in FLINT, just like fmpz_vec_content. We'll see if we have
time to implement this in the future.
Best,
Albin
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "flint-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
flint-devel...@googlegroups.com
> <mailto:
flint-devel...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/flint-devel/CAD0p0K6rt0%3DgJW_haUe%3DiyON1zrh8BqXRHds2jYq%2BrUpuHiB%2BQ%40mail.gmail.com <
https://groups.google.com/d/msgid/flint-devel/CAD0p0K6rt0%3DgJW_haUe%3DiyON1zrh8BqXRHds2jYq%2BrUpuHiB%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.