N = input('Degree? ');

x = -2*pi:0.01:2*pi;
y = cos(x);
plot (x, y,'r')


hold on

for i=-2*pi:0.01:2*pi
    z = cos0approx(i,N);
    plot(i, z)
    hold on
end

legend('cos(x)', 'cos Approx')