comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » A problem using IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
A problem using IDL? [message #60101] Thu, 01 May 2008 07:35
chihuyu is currently offline  chihuyu
Messages: 1
Registered: May 2008
Junior Member
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?
[Message index]
 
Read Message
Previous Topic: XML parsing
Next Topic: IDL plotting query - how can I get rid of unwanted colour for a particular data value???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:36:42 PDT 2025

Total time taken to generate the page: 1.12072 seconds