nbody: energy