2011/12/11 William Stein <wst...@gmail.com>:
> sage: parent(gcd(Mod(5,7), 7))
> Integer Ring
>
> which... sucks!    I consider this a bug.  We should definitely have
> that the gcd is in parent(Mod(5,7)).

This bug seems to be as old as http://trac.sagemath.org/sage_trac/ticket/4443

If "a" in "gcd(a,b)" has no attribute "gcd", then both are coerced to
ZZ before taking a gcd.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to