On 15 Feb., 16:37, Simon King <simon.k...@uni-jena.de> wrote:
> Yep:
> sage: a = SR(-1)
> sage: b = SR(-1/5)
> sage: sage.rings.arith.gcd(a,b)
> 1  # or 1/5 with my patch.

No, I was mistaken. Everything can be traced back to g_gcd, which is
called in sage.symbolic.expression.Expression.gcd. At that point, I
lost track: I can not find the code of g_gcd (even "grep g_gcd" does
not give me a hint). In particular, I did not change g_gcd, but it
seems that my patch had a side effect on it.

So, I am afraid I still need more insight!

Cheers,
Simon

-- 
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