added epsilonFn to pi.cc