Skip to content

Commit 73b4146

Browse files
committed
add doctest for #16031
1 parent 66b319b commit 73b4146

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,6 +3464,12 @@ cdef class Expression(Expression_abc):
34643464
34653465
sage: bool(x^2 + 2*x + 1 != (x + 1)^2)
34663466
False
3467+
3468+
Check that :trac:`16031` is fixed::
3469+
3470+
sage: expr = reduce(lambda u, v: 1/u -v, [1/pi] + list(continued_fraction(pi)[:20]))
3471+
sage: expr.is_zero()
3472+
False
34673473
"""
34683474
if self.is_relational():
34693475
# constants are wrappers around Sage objects, compare directly

0 commit comments

Comments
 (0)