We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4edae89 commit 7857d42Copy full SHA for 7857d42
1 file changed
mathics/core/expression.py
@@ -2257,9 +2257,9 @@ def is_zero(self) -> bool:
2257
2258
@property
2259
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
+ # In WMA, Chop[10.^(-10)] == 0,
+ # so, lets take it.
+ res = abs(self.value) <= 1e-10
2263
return res
2264
2265
0 commit comments