Re: [R] Looking for package to solve for exponent using newton's method

2013-10-11 Thread Prof J C Nash (U30A)
And if you need some extra digits: require(Rmpfr) testfn-function(x){2^x+3^x-13} myint-c(mpfr(-5,precBits=1000),mpfr(5,precBits=1000)) myroot-unirootR(testfn, myint, tol=1e-30) myroot John Nash On 13-10-11 06:00 AM, r-help-requ...@r-project.org wrote: Message: 33 Date: Thu, 10 Oct 2013

[R] Looking for package to solve for exponent using newton's method

2013-10-10 Thread Ken Takagi
Hi, I'm looking for an R function/package that will let me solve problems of the type: 13 = 2^x + 3^x. The answer to this example is x = 2, but I'm looking for solutions when x isn't so easily determined. Looking around, it seems that there is no algebraic solution for x, unless I'm mistaken.

Re: [R] Looking for package to solve for exponent using newton's method

2013-10-10 Thread Duncan Murdoch
On 10/10/2013 2:39 PM, Ken Takagi wrote: Hi, I'm looking for an R function/package that will let me solve problems of the type: 13 = 2^x + 3^x. The answer to this example is x = 2, but I'm looking for solutions when x isn't so easily determined. Looking around, it seems that there is no

Re: [R] Looking for package to solve for exponent using newton's method

2013-10-10 Thread Berend Hasselman
On 10-10-2013, at 20:39, Ken Takagi katak...@bu.edu wrote: Hi, I'm looking for an R function/package that will let me solve problems of the type: 13 = 2^x + 3^x. The answer to this example is x = 2, but I'm looking for solutions when x isn't so easily determined. Looking around, it

Re: [R] Looking for package to solve for exponent using newton's method

2013-10-10 Thread Ken Takagi
Thanks! That's just what I needed. __ 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,

Re: [R] Looking for package to solve for exponent using newton's method

2013-10-10 Thread Jeff Newmiller
?uniroot --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#..