add comments explaining the existance of double cos(double)
it returned Math.cos(double), by the way