pi = 2.
delta = 1.
i = 0
while delta > 0.00000000001:
    i = i + 1
    delta = abs(pi - pi * (4. * i ** 2. / (4. * i ** 2. - 1.)))
    pi = pi * (4. * i ** 2. / (4. * i ** 2. - 1.))
print pi

a10975b98d6f73dc981e6dea6216f4bbc3b753eb
pi = 2.
delta = 1.
i = 0
while delta > 0.00000000001:
    i = i + 1
    delta = abs(pi - pi * (4. * i ** 2. / (4. * i ** 2. - 1.)))
    pi = pi * (4. * i ** 2. / (4. * i ** 2. - 1.))
print pi
