3 ms·
If speed of convergence is what you seek, i've yet to discover a more impressive case than a surprisingly simple method attributed to Gauss using the geometric
by theophrastus 10y ago
If speed of convergence is what you seek, i've yet to discover a more impressive case than a surprisingly simple method attributed to Gauss using the geometric and arithmetic means of two numbers. Three times around the loop and it's already correct to five decimal places: http://pastebin.com/674YJ9VM http://pastebin.com/674YJ9VM
- pvg 10y agoYou can get faster convergence although not quite as simple. https://en.wikipedia.org/wiki/Approximations_of_π#Efficient_methods https://en.wikipedia.org/wiki/Approximations_of_π#Efficient_...