t = -5*pi:.1:5*pi;

fokszam = 5;

y = zeros(1,length(t));
z = zeros(fokszam+1,length(t));

for n = 0:fokszam   
    y = y + ((-1)^n)/fakt(2*n+1)*t.^(2*n+1);
    z(n+1,:) = y; 
end;
plot(t,z,'--');
hold on;
plot(t,sin(t),'k');
hold off;
axis([-16 16 -5 5 ])
