DOSFromFunction.
density
Calculates the density of free fermions for the given DOS for chemical potential mu.