Skip to content

Commit

Permalink
add doctest for #16031
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Feb 7, 2023
1 parent 66b319b commit 73b4146
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3464,6 +3464,12 @@ cdef class Expression(Expression_abc):
sage: bool(x^2 + 2*x + 1 != (x + 1)^2)
False
Check that :trac:`16031` is fixed::
sage: expr = reduce(lambda u, v: 1/u -v, [1/pi] + list(continued_fraction(pi)[:20]))
sage: expr.is_zero()
False
"""
if self.is_relational():
# constants are wrappers around Sage objects, compare directly
Expand Down

0 comments on commit 73b4146

Please sign in to comment.