RE: [R] help with numerical solution for two simultaneous nonlinearequations in 2 variables

2004-09-17 Thread Joshi, Yogesh
Thank you - optim has solved my problem.

Best regards,
Yogesh

-Original Message-
Hi,

Suppose you have p equations in p unknowns:
F1(x1,x2,...,xp) =0
.
.
.
Fp(x1,x2,...,xp) = 0

You can solve the equivalent minimization problem: 
G(x1,x2,...,xp) = F1^2 + ... + Fp^2 = 0

So, you can use optim with G as your objective function. 

Hope this is helpful,
Ravi.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joshi, Yogesh
Sent: Thursday, September 16, 2004 10:54 PM
To: [EMAIL PROTECTED]
Subject: [R] help with numerical solution for two simultaneous
nonlinearequations in 2 variables

Hi,

I am relatively new to R and am trying to solve two simultaneous
nonlinear equations in two variables numerically, and was wondering if
anyone knew if any of the packages could do that.  An alternative is
writing my own code using Newton-Raphson; I did that but was not able to
get good convergence. Any ideas please? 

Thanks

Yogesh

 


[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] help with numerical solution for two simultaneous nonlinear equations in 2 variables

2004-09-16 Thread Joshi, Yogesh
Hi,

I am relatively new to R and am trying to solve two simultaneous
nonlinear equations in two variables numerically, and was wondering if
anyone knew if any of the packages could do that.  An alternative is
writing my own code using Newton-Raphson; I did that but was not able to
get good convergence. Any ideas please? 

Thanks

Yogesh

 


[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html