Skip to content

Commit 16bc8f0

Browse files
committed
suggested details
1 parent b792122 commit 16bc8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/quadratic_forms/ternary_qf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ def is_negative_definite(self) -> bool:
387387
if d1 == 0:
388388
return False
389389
d2 = 4 * self._a * self._b - self._t**2
390-
if d2 == 0:
390+
if d2 <= 0:
391391
return False
392392
d3 = self.disc()
393393
if d3 == 0:
394394
return False
395-
return d1 < 0 and d2 > 0 and d3 < 0
395+
return d1 < 0 and d3 < 0
396396

397397
def __neg__(self):
398398
"""

0 commit comments

Comments
 (0)