Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > A problem using...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 5694 of 6022
Post > Topic >>

A problem using IDL?

by chihuyu@[EMAIL PROTECTED] May 1, 2008 at 07:35 AM

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?
 




 5 Posts in Topic:
A problem using IDL?
chihuyu@[EMAIL PROTECTED]  2008-05-01 07:35:13 
Re: A problem using IDL?
pgrigis@[EMAIL PROTECTED]  2008-05-01 07:49:05 
Re: A problem using IDL?
Vince Hradil <hradilv@  2008-05-01 08:41:16 
Re: A problem using IDL?
"R.G. Stockwell"  2008-05-02 10:16:52 
Re: A problem using IDL?
"R.G. Stockwell"  2008-05-02 10:20:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:52:13 CDT 2008.