Tag Archives: Threads

Calculating Pi by Leibniz formular

Problem This is to calculate an approximation to the constant Pi (π). Solution 1.1. Computation  fomular will take O(m) steps –linear algorithm or time complexity is O(m) . The Leibniz series converges very slowly if m approaches infinity.  To calculate pi to one million decimal places would require 106 terms. 1.2 Calculate the nth digit of… Read More »