Find the sum of cos(x) series