Question

7. Modify the sin_poly function to work for the cosine function, for any real angle x. Test it

for x=[0 pi/6 pi/4 pi/3-pi-pi/3 -0.32 325 -78 23.34 -19.432], and comparethe result to

that of the Matlab built-in cos function.

Question image 1