Hi!

On 15 Feb., 16:23, kcrisman <kcris...@gmail.com> wrote:
> ...
> Hence in symbolic/pynac.pyx we have the following:
>
> #################################################################
> # GCD
> #################################################################
> import sage.rings.arith
> cdef public object py_gcd(object n, object k) except +:
>     if PY_TYPE_CHECK(n, Integer) and PY_TYPE_CHECK(k, Integer):
>         if mpz_cmp_si((<Integer>n).value,1) == 0:
>             return n
>         elif mpz_cmp_si((<Integer>k).value,1) == 0:
>             return k
>         return n.gcd(k)
>
>     if PY_TYPE_CHECK_EXACT(n, Rational) and PY_TYPE_CHECK_EXACT(k,
> Rational):
>         return n.content(k)
>     try:
>         return sage.rings.arith.gcd(n,k)
>     except (TypeError, ValueError, AttributeError):
>         # some strange meaning in case of weird things with no usual
> lcm.
>         return 1

Thank you! I guess this is it! Namely, I changed sage.rings.arith.gcd.

Best regards,
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