def viete(n): c,p = 0,1 for k in range(n): c += 1 c /= 2 c = c**0.5 p *= c return 2/p