Skip to main content
1-Visitor
Question

newton jacob 5x5

Hello.
I've been trying solve 5x5 matrix for some time method of newton but something is not correct. Anybody can help?

16 replies

Werner_E
25-Diamond I

The vector x in your program has only three elements but the function newton/F requires a 5-element vector.
If I correct this by setting x as 5-element vector with all 1's I get a singularity errror because the matrix created by F ist not invertible.

You may have to check the algorithms used.

Translate
1-Visitor

Hi,
please check now my solution. Something is wrong but it is better now.

Translate
Werner_E
25-Diamond I

Your program uses a function f.x which never is defined.

Translate
-MFra-
21-Topaz II

Hi!
Hereafter, there are some examples that use the Newton algorithm. Lastly, there is also one related to your problem. But it is the only one that is not soluble in the presence of a singularity.

Newton in several variables 1.jpg

example 4.jpg

Greetings

FM

Translate
-MFra-
21-Topaz II

... in fact my results are very strange ... just look at the two examples attached.

example 4+.jpg

Translate
-MFra-
21-Topaz II

Hi,

You can get the same results without calculating the Jacobian inverse matrix. See the following program:

Newton in several variables 2.jpg

 

Translate
1-Visitor

Hi

Thanks for help. But now I have special sample on the 30 page. Could you help me?

Translate
-MFra-
21-Topaz II

Hi ptc-3682623,

Answer to the first question:

ptc....jpg
Second question: Lambda is not defined.

Translate