On Mon, Jun 2, 2008 at 4:31 PM, François Aucoin <[EMAIL PROTECTED]> wrote: > I would like to solve the following function in R: > > G <- function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k) > > I want to be able to find "k" for a given "G"
Consider G(k)-g. With plot look for intervals where the roots lie in. Afterwards, use uniroot to get the roots. Paul ______________________________________________ R-help@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.