The hash of infinity in Python has digits matching pi: >>> inf = float('inf') >>> hash(inf) 314159 >>> int(math.pi*1e5) 314159 Is that just a coincidence or is it intentional?...
I’m looking for the fastest way to obtain the value of Ï€, as a personal challenge. More specifically, I’m using ways that don’t involve using #define constants like M_PI,...
I was trying various methods to implement a program that gives the digits of pi sequentially. I tried the Taylor series method, but it proved to converge extremely slowly...