Re: [R] Root finding problem

2007-09-24 Thread bbolker
tuki <- function(u, x, a, lambda){ u <- u+0i f <- Re(x-(a*(u)^lambda-(1-(u))^lambda)/lambda) f } ## What I want to do is to find the root, but without specifying the ## interval within which to search for it. I can do it easily in MATLAB ## with fsolve() or fzero() functions. ## BB: how d

[R] Root finding problem

2007-09-24 Thread Sergey Goriatchev
Hello, I have a problem finding a root of a function, which I define like this: tuki <- function(u, x, a, lambda){ if((lambda%%1>0) & u<0) {u<-(u+0i)} f <- Re(x-(a*(u)^lambda-(1-(u))^lambda)/lambda) f } What I want to do is to find the root, but without specifying the interval within which to se