Hi,

Vincent Delecroix <[email protected]> wrote:
> Anyway, the answer you got is perfectly valid and it would actually
> make confusion to not return the trivial answer (1, 1/a, 0) in the
> case of fields. Do you still think this is a bug?

I am not sure. This behavior did cause a subtle bug in my application.
I made sure the arguments to xgcd were rational numbers with denominator
one, but I forgot to actually cast them into integers.

It also disagrees with the gcd function:

  sage: gcd(6/1,2/1)
  2
  sage: xgcd(6/1,2/1)
  (1, 1/6, 0)

Best,
Álinson.

-- 
Álinson Santos Xavier
Graduate Student
Combinatorics & Optimization
University of Waterloo

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to