Calculate the kinetic energy using yarr.