Error calculation depending on the kinetic energy