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 47c2053 commit 321b092Copy full SHA for 321b092
labfis.py
@@ -57,13 +57,13 @@ def __trunc__(self):
57
58
def __eq__(self, other):
59
if isinstance(other, labfloat):
60
- return abs(self.mean - other.mean) < 2 * (self.uncertainty - other.uncertainty)
+ return abs(self.mean - other.mean) < 2 * (self.uncertainty + other.uncertainty)
61
if isinstance(other, Number):
62
return abs(self.mean - other) < 2 * self.uncertainty
63
64
def __ne__(self, other):
65
66
- return abs(self.mean - other.mean) > 3 * (self.uncertainty - other.uncertainty)
+ return abs(self.mean - other.mean) > 3 * (self.uncertainty + other.uncertainty)
67
68
return abs(self.mean - other) > 3 * self.uncertainty
69
0 commit comments