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.
>>> 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