We have used the linear muffin-tin orbital method, without geometrical cons
traints on the electron density or potential, to calculate the electronic s
tructure of FeS2 and CoS2. From the self-consistent potential we have compu
ted the energy bands and the frequency dependent dielectric function. The c
alculated dielectric function is found to be in good agreement with availab
le experimental data.