Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 18c2768

Browse files
committed
18883: depend on Pynac handling all inequalities
1 parent 5abe68e commit 18c2768

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,6 +2567,14 @@ cdef class Expression(CommutativeRingElement):
25672567
Traceback (most recent call last):
25682568
...
25692569
TypeError: unsupported operand parent(s)...
2570+
2571+
Check that we use all results from Pynac (:trac:`18882`)::
2572+
2573+
sage: forget()
2574+
sage: bool(exp(x) >= 0)
2575+
False
2576+
sage: bool(exp(real(x)) >= 0)
2577+
True
25702578
"""
25712579
if self.is_relational():
25722580
# constants are wrappers around Sage objects, compare directly
@@ -2591,6 +2599,8 @@ cdef class Expression(CommutativeRingElement):
25912599
return True
25922600
else:
25932601
return pynac_result == relational_true
2602+
elif self.operator != operator.eq and self.operator != operator.ne:
2603+
return False
25942604

25952605
# If assumptions are involved, falsification is more complicated...
25962606
need_assumptions = False

0 commit comments

Comments
 (0)