News for hackers. Stuff that matters.
Re:Weird Constants in Math Problems by seth_tr on Tuesday July 07, 2020 @05:00AM (#23757106)
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

Re:Weird Constants in Math Problems by madcaptenor on Tuesday July 07, 2020 @09:33AM (#23759048)
Michael 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.
Re:Weird Constants in Math Problems by mjd on Tuesday July 07, 2020 @11:19AM (#23760135)
I fixed it on my side also. Thanks to both of you for the correction.