In C, Calculating Pi
In this section I shall share this: against Dik T. Winter's Pi Computing in C, my experience. Regarding this, here is my Repl.it repository: link. Just click Run. On Repl.it, you, reader, can compile certain programming languages, and run them, online. With a GitHub account, you can also import your own GitHub repositories. But I do not feel this is an adequeate Pi solution. Against Winter's work is his whole-number-producing app, Pi Computing in C; it does not produce Pi, a decimal. Instead, it produces an 800-digit number that is a number sequence, but no decimal separated the 3 from the following digits, so there is no similitude. If you, reader, want to play with this code, I figure you can get near 80000 digits with it, scaling the array, and 2800 for loop limits by powers of 10, but 800000 might be too much for something built more than 6 years ago. I used my Surface Pro LTE and got a segmentation fault at 2800000 array elements because that requires a huge amount of cache memory. In the future, I shall attempt modifying this code, and run it using MPI or GPGPU.
Comments
Post a Comment