harmonic coefficients calculation a b c d e