I have band structure calculated by my tight bind model, now I want to write a program to calculate the density of states, but I find that if I choose the textbook approach which involves an integration of delta function, it gets unfavorable result. Could you give me some advise on this programming problem? Thanks a lot!!