Re: [R] How to find points of intersection between harmonic function and a line

2011-02-22 Thread rex.dwyer
How is the curve is represented? That's more important that its organ-of-origin. If you have values of y=f(x) at discrete time points, then y-(x+2) will change sign sometimes... the intersection point is at some time x' in between. Am I missing something subtle here? You could interpolate the

Re: [R] How to find points of intersection

2011-02-22 Thread rex.dwyer
How is the curve defined? If the curve is y=f(x) and the line is y=mx+b, you look for the roots of f(x)-mx-b. ?polyroot ?uniroot -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of FMH Sent: Tuesday, February 22, 2011 6:28 AM To: r-he

Re: [R] How to find points of intersection between harmonic function and a line

2011-02-22 Thread FMH
. Thank you, Fir - Original Message From: Uwe Ligges To: FMH Cc: r-help@r-project.org Sent: Tue, February 22, 2011 1:11:41 PM Subject: Re: [R] How to find points of intersection On 22.02.2011 12:27, FMH wrote: > Dear All, > > I'm looking an appropriate way in R to co

Re: [R] How to find points of intersection

2011-02-22 Thread Uwe Ligges
On 22.02.2011 12:27, FMH wrote: Dear All, I'm looking an appropriate way in R to compute/estimate points of intersection between a line and a curve and will really appreciate for any suggestion or ideas? Sounds like second level school homework. If not, please explain your problem in more