From 638a14bdc30f8613b8263271aa7f9a56f908c3d3 Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Tue, 24 Oct 2017 16:55:49 +0200 Subject: [PATCH] 23793: Doctest fix for GCD bug --- src/sage/symbolic/expression.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sage/symbolic/expression.pyx b/src/sage/symbolic/expression.pyx index 3f5dee54bee..0a88b4f5e57 100644 --- a/src/sage/symbolic/expression.pyx +++ b/src/sage/symbolic/expression.pyx @@ -7016,6 +7016,11 @@ cdef class Expression(CommutativeRingElement): sage: d = e.diff(x) sage: gcd(d,e) / (u^4*z^2) in QQ True + + Check that :trac:`23793` is fixed:: + + sage: gcd(I + I*x, x^2 - 1) + x + 1 """ cdef Expression r = self.coerce_in(b) cdef GEx x