[R] How to solve difficult equations?
francogrex
francogrex at mail.com
Wed Apr 25 09:15:55 CEST 2007
This below is not solvable with uniroot to find "a":
fn=function(a){
b=(0.7/a)-a
(1/(a+b+1))-0.0025
}
uniroot(fn,c(-500,500)) gives
"Error in uniroot(fn, c(-500, 500)) : f() values at end points not of
opposite sign"
I read R-help posts and someone wrote a function:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/92407.html
but it is not very precise. Is there any '"standard" function in R that can
solve this? thanks.
--
View this message in context: http://www.nabble.com/How-to-solve-difficult-equations--tf3643595.html#a10175603
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list