fixed a couple typos in calc_e_n