optimize Euler's constant, rename function, and add error bounds