4 ms·
Seems the first constant is wrong >>> 1/(2 * (1 - math.exp(-2))) 0.5782588213748329 Instead it should be >>> 1/2 * (1 - math.exp(-2)) 0.43233235838169365
by seth_tr 6y ago
Seems the first constant is wrong
>>> 1/(2 * (1 - math.exp(-2)))
0.5782588213748329
Instead it should be
>>> 1/2 * (1 - math.exp(-2))
0.43233235838169365
Which handily appears in OEIS (a great resource for random constants and sequences) as http://oeis.org/A247847 http://oeis.org/A247847
- madcaptenor 6y agoMichael Lugo (author of the original post that Mark was responding to) here. I had written $1/2 (1-e^{-2})$ in my post, meaning the 0.4323 constant, but with the usual rules of precedence you do in fact get 0.5782; he just propagated my error.
- mjd 6y agoI fixed it on my side also. Thanks to both of you for the correction.