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