Re: [R] Solve f(x) = 0

From: Martyn Plummer <>
Date: Thu 09 Jun 2005 - 01:55:57 EST

On Wed, 2005-06-08 at 17:08 +0200, Fredrik Thuring wrote:
> Hi!
> Im need a function that solves the equation f(x) = 0 (i.e. the root of
> the function) when f is a nonlinear function. Is there any? Ive tried nlm
> and optim on the square of the function but the solution is very unstable.

Your colleague Martin Englund asked the same question. If x is scalar, you can use uniroot(). If it's a polynomial then polyroot() finds all the zeros. I hope that helps.

Martyn mailing list PLEASE do read the posting guide! Received on Thu Jun 09 02:02:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST