Skip to content

Commit 7857d42

Browse files
committed
more PossibleZeroQ fixes
1 parent 4edae89 commit 7857d42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mathics/core/expression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,9 +2257,9 @@ def is_zero(self) -> bool:
22572257

22582258
@property
22592259
def is_approx_zero(self) -> bool:
2260-
# FIXME: figure out how to hook int $MachinePrecision and
2261-
# what the right definition here would be.
2262-
res = abs(self.value) <= 1e-14
2260+
# In WMA, Chop[10.^(-10)] == 0,
2261+
# so, lets take it.
2262+
res = abs(self.value) <= 1e-10
22632263
return res
22642264

22652265

0 commit comments

Comments
 (0)