So I am given three non linear equations:

and i need to solve using newtons method using 100 randomly selected initial guesses for x1^(0), x2^(0) and x3^(0).Code:`x1(x2-2)=0,`

x2(x3-3)=0,

x3(x1-1)=0

Printable View

- Jan 21st 2008, 01:40 PManncarC++/matlab programming
So I am given three non linear equations:

Code:`x1(x2-2)=0,`

x2(x3-3)=0,

x3(x1-1)=0

- Jan 21st 2008, 10:09 PMCaptainBlack
First find the Jacobian:

Now Newton's method proceeds from a initial approximation of guess: to the next approximation using by solving:

for , then the next estimate is:

.

Then the general itteration step is:

solve:

for , then the next estimate is:

.

In Matlab the equation J dP= P is solved using a statement of the form:

dP=J\P

if I recall correctly

RonL