Ron Shonkwiler wrote: > > I would like to define a function of two variables f(x,y) and, for > a given value of x, solve f(x,y)=0 for y. > > Is this available in R?
Have a look at uniroot(), e.g. do something like
R> myfun <- function(x,y) x+y R> uniroot(function(x) myfun(x,5), c(-10,10))
cheers Z
No comments:
Post a Comment