Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg5070] [Q] FindRoot & large system of eqns
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Paul R. Wellin

Posts: 14
Registered: 12/7/04
Re: [mg5070] [Q] FindRoot & large system of eqns
Posted: Oct 30, 1996 12:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In my previous response to the post about FindRoot,
I left out a modifier ("typically") that makes for an inaccurate
statement. That last paragraph should have read:

> FindRoot is typically used for searching for a numerical solution to a single
> equation. It uses a variant of Newton's method and hence requires some
> initial guesses to get it started. It will use a secant method
> if you provide two initial guesses.


The reason that I suggested other methods is that there is
great difficulty finding solutions for large systems with Newton's
method if you don't really know where to start; that is, if you cannot
start with decent initial guesses. If you are just taking wild guesses
for the initial values for such a system (16 unknowns in your case),
you will almost certainly fail.

This is what you might see:

In[12]:=
FindRoot[{x^2-3y==z, 2y^2-3x-z^2==1, x+y-z^2==3},
{x,1.0}, {y,-2.0}, {z,4.0}]

FindRoot::"cvnwt":
"Newton's method failed to converge to the prescribed accuracy
after 15 iterations."

Out[12]=
{x -> 0.32227,y -> -0.686455,z -> 2.14173}

If, on the other hand, you are able to do some analysis and come
up with good starting values, then FindRoot should server you quite
well.

Paul Wellin







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.