Density of states and Fermi function