Maclaurin series approximation of cos(x)