%  ²Ä¤@ÃD
subplot(1,2,1)
x=-2*pi:000.1:2*pi
for n=0:10
    y=cos(n.*x)
    plot(x,y)
    axis([-8,8,-1,1.5])
    hold on
end
subplot(1,2,2)
x=-2*pi:000.1:2*pi
for n=1:10
    y=sin(n.*x)
    plot(x,y)
    axis([-8,8,-1,1.5])
    hold on
end
clear all

%  ²Ä¤GÃD
subplot(1,3,1)
total=0.5
x=-2*pi:0.1:2*pi
for n=1:3
    total=total+(-1+(-1)^n)*sin(n.*x)./(pi*n)
end
plot(x,total)
subplot(1,3,2)
total=0.5
x=-2*pi:0.1:2*pi
for n=1:9
    total=total+(-1+(-1)^n)*sin(n.*x)./(pi*n)
end
plot(x,total)
subplot(1,3,3)
total=0.5
x=-2*pi:0.1:2*pi
for n=1:11
    total=total+(-1+(-1)^n)*sin(n.*x)./(pi*n)
end
plot(x,total)

%  ²Ä¤TÃD
subplot(1,3,1)
total=pi
x=-2*pi:0.1:2*pi
for n=1:3
    total=total+(-2/n).*sin(n.*x)
end
plot(x,total)
subplot(1,3,2)
total=pi
x=-2*pi:0.1:2*pi
for n=1:9
    total=total+(-2/n).*sin(n.*x)
end
plot(x,total)
subplot(1,3,3)
total=pi
x=-2*pi:0.1:2*pi
for n=1:11
    total=total+(-2/n).*sin(n.*x)
end
plot(x,total)