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? Thank you, Fir
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 detail and PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Uwe Ligges> Thank you, > Fir > > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
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-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of FMH Sent: Tuesday, February 22, 2011 6:28 AM To: r-help at r-project.org Subject: [R] How to find points of intersection 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? Thank you, Fir ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.