Question: Newton Method for System of non linear equation

please guide me how to write a simple code for Newton method to solve the following system of nonlinear equations
D= diagonal of A
L= lower triangular
U= upper Triangular
 


 

"n:=10;   x[0]:= ([1,2,3])    f[1]:=x[1]^(2)sin(x[1]x[2])+x[2]^(3)=5    f[2]:=e^(x[1]^(2))x[2]^(2)+3 x[1]^(2)x[2]+x[2]^(2)-6=0    newton method is     for k from 1 to n do    x[k+1]:=D^((-1))(L+U)*x[k]-D^((-1)b)    end do"

``


 

Download NM.mw
 

"n:=10;   x[0]:= ([1,2,3])    f[1]:=x[1]^(2)sin(x[1]x[2])+x[2]^(3)=5    f[2]:=e^(x[1]^(2))x[2]^(2)+3 x[1]^(2)x[2]+x[2]^(2)-6=0    newton method is     for k from 1 to n do    x[k+1]:=D^((-1))(L+U)*x[k]-D^((-1)b)    end do"

``


 

Download NM.mw

 

Please Wait...