%
% this program creates data points needed to
% plot sine waves and then plots them using
% the routine "plot"
%
x=zeros(2001);
y=zeros(2001);
pi = acos(-1.);
dx = (6.*pi)/2000.;
for i=1:2001,
    x(i) = -3.*pi + dx*(i-1);
    y(i) = 2.*sin(x(i));
end
plot(x,y)

