this is how boltzmann distribution equation is calculated