With your data, we get: sage: K=parent(1/D2) sage: r=K(D1) sage: s=K(1/D2) sage: r.numerator().gcd(s.denominator()) 0
and I think that's the zero which leads to the division-by-zero error. Of course, a 0 returned as gcd is just a bug. It doesn't look like the coercion framework is really involved here. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/57c8457c-311c-420f-855b-ad7b562ec427n%40googlegroups.com.