Hello,

When using the xgcd function with rational numbers (that turn out to be 
integers), Sage returns non-integer numbers.

  sage: xgcd(Rational(17),Rational(2))
  (1, 1/17, 0)
  sage: xgcd(17,2)
  (1, 1, -8)

I certainly did not expect this behaviour. 
Is this a bug? I am using version 6.4.1.

Thanks,
Á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