Re: [R] Solving two nonlinear equations and two knowns

2009-07-17 Thread Dieter Menne
yhsu6 wrote: > > I have two nonlinear equations, f1(x1,x2)=0 and f2(x1,x2)=0. I try to use > optim command by minimize f1^2+f2^2 to find x1 and x2. I found the optimal > solution changes when I change initial values. How to solve this? > > BTW, I also try to use grid searching. But I have no i

[R] Solving two nonlinear equations and two knowns

2009-07-17 Thread yhsu6
Dear R users, I have two nonlinear equations, f1(x1,x2)=0 and f2(x1,x2)=0. I try to use optim command by minimize f1^2+f2^2 to find x1 and x2. I found the optimal solution changes when I change initial values. How to solve this? BTW, I also try to use grid searching. But I have no information o