|
|
|
|
|
by 098799
854 days ago
|
|
I see! yes, the magic is you can cancel the noise by repeating it twice: ```
In [1]: math.exp(1e-15)-1
Out[1]: 1.1102230246251565e-15 In [2]: math.log(math.exp(1e-15))
Out[2]: 1.110223024625156e-15
``` risky business though, I imagine it's implementation dependent |
|
From the article:
but... g(1e-16) throws ZeroDivisionError: float division by zero.