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

Home » Public Forums » archive » Re: How to calculate the abscissa values for the given vertical values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to calculate the abscissa values for the given vertical values [message #68132] Mon, 05 October 2009 06:10
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 5 Oct 2009 01:56:20 -0700 (PDT), "duxiyu@gmail.com"
<duxiyu@gmail.com> wrote:

> Hi, all.
> I want to calculate the abscissa values for the given vertical values.
>
> For example,
> x = findgen(1000)/1000*4*pi
> y = cos(x)
> I want to get the abscissa values for y=0.
> For this example, the results shoule be [!pi/2, 3*!pi/2, 5*!pi/2, 7*!
> pi/2].
> But how can I get it by IDL codes?
>
> Best wishes,
> jdu

Just for this function:
print,(indgen(ceil(max(x)/!pi))+1)*!pi/2

What do you need exactly? You can always find the answer analytically
no?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to calculate the abscissa values for the given vertical values
Next Topic: Re: Slow GUI on linux

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

Current Time: Wed Oct 08 19:12:20 PDT 2025

Total time taken to generate the page: 0.00534 seconds