Libc implementation of cos
Marcel Sondaar
Public Domain
double cos(double x)
computes and returns the cosine of x (using a taylor expansion)