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 ae8ceee commit f7d0058Copy full SHA for f7d0058
unpythonic/mathseq.py
@@ -47,7 +47,8 @@
47
try:
48
from mpmath import mpf, almosteq as mpf_almosteq
49
except ImportError:
50
- mpf = mpf_almosteq = None
+ mpf = type(None)
51
+ mpf_almosteq = None
52
53
def _numsign(x):
54
if x == 0:
@@ -68,6 +69,7 @@ def sign(x):
68
69
70
log = math_log
71
sign = _numsign
72
+ _symExpr = type(None)
73
74
def almosteq(a, b, tol=1e-8):
75
"""Almost-equality that supports several formats.
0 commit comments