eq_ratio function

Energy:photon ratio