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

Home » Public Forums » archive » Re: Point of intersection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Point of intersection [message #61815 is a reply to message #61801] Wed, 30 July 2008 09:14 Go to previous messageGo to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Jul 30, 11:46 am, kishore1...@gmail.com wrote:
> Hello,
>
> I hope this is simple question for experienced guys.
> How to find out perfect point of intersection of x value and
> corresponding y value.
> For example:
> x1=[0.1,0.2,0.6,0.7]
> x2=[0.5,0.4,0.5,0.3]
> y=[1,2,3,4]
> plot,x1,y,xran=[0.,0.8]
> oplot,x2,y
>
> In this, two plots are intersection at one point, how to find out that
> particular interesection x and y value.
>
> Thanking you,
>
> Kishore

The lines cross where (x1(i)-x2(i)) changes sign.
ie. between the indices given by MAX(WHERE((x2-x1)>0)) and
MIN(WHERE((x2-x1)<0))

The exact intersection can then be found by determining the
intersection of the 2 straight lines defined by those points.

Bob.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spawn
Next Topic: PSF Energy inside circle

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

Current Time: Fri Oct 10 22:48:53 PDT 2025

Total time taken to generate the page: 0.00198 seconds