0

Hi Guys, I was wondering how one would write a C program that calculates the value of a cosine function without using any library functions from <math.h>

I need the outputs to turn out like this

Case 1: cos(-1.000) = 0.540302303792

Case 2: cos(1.000) = 0.540302303792

Case 3: cos(1.500) = -0.125000000000

Case 4: cos(2.000) = -0.422222222222

Case 5: cos(2.000) = 1.000000000000