5 ms·
That was interesting. It continues for a little bit, but it soon falls apart: $ pypy3 man.py [33, 315, 3143, 31417, 314160, 3141593, 31415927, 7853981
by Twirrim 7y ago
That was interesting. It continues for a little bit, but it soon falls apart:
$ pypy3 man.py
[33, 315, 3143, 31417, 314160, 3141593, 31415927, 7853981629]
- ocfnash 7y agoIt continues forever! See here for example: https://mathoverflow.net/questions/215187/is-there-a-reference-for-computing-pi-using-external-rays-of-the-mandelbrot https://mathoverflow.net/questions/215187/is-there-a-referen... I believe you are just running into the limits of double precision arithmetic; indeed log_2((10^8)^2) > 53.
- FreeFull 7y agoInterestingly, 7.853981629 is close to pi*2.5