[R] Invitation à se connecter sur LinkedIn

2010-11-22 Thread Yann Lancien via LinkedIn
LinkedIn Yann Lancien requested to add you as a connection on LinkedIn: -- James, J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le site LinkedIn. Yann Accept invitation from Yann Lancien http://www.linkedi

Re: [R] Problem : solving a equation with R , fail with uniroot function

2009-06-10 Thread yann lancien
Thanks for your help ! I got another problem with my function : test <- function(x,bb0=-3,bb1=5,c0=2,r0=0) { ((exp(c0-r0)*(bb0+x)*(bb1-x))/((bb0+x+1)*(bb1-x-1))-1)} With this : curve(test(x),from=-10,to=10) we can see that there are 2 roots : one in [3,4] and one in [5,10] > uniroot(test,c(5, 1

[R] Problem : solving a equation with R , fail with uniroot function

2009-06-09 Thread yann lancien
Hi , I would like to know if a R function have the same behaviour than the matlab solve function. I tried something with uniroot but I have some problems: The equation I need to solve is : exp(c0-r0)*(bb0+x)*(bb1-x)=(bb0+x+1)(bb1-x-1) So I tried this: STEP 1: my function test test <- function(x,