Calculation of anomalous permeability and permittivity spectra