I used idl to write the following:
window,xsize=800,ysize=400
min=0
max=100
n=200
x=fltarr(n+1)
for i=0,n do x[i]=min+double(i)*(max-min)/n
print,x
y=sin(2*3.141593*x)
plot,x,y
When n=100 or n=200,the graph is wrong. When n >=300,it's OK.Can
someone tell me why?


|