from math import * def IC(n,f,ndigits): return [floor(10**ndigits*(f-1/sqrt(n)))/10**ndigits,ceil(10**ndigits*(f+1/sqrt(n)))/10**ndigits]