Skip to main content
1-Visitor
July 22, 2017
Question

newton jacob 5x5

  • July 22, 2017
  • 3 replies
  • 6314 views

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

3 replies

25-Diamond I
July 22, 2017

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.

1-Visitor
July 23, 2017

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

25-Diamond I
July 23, 2017

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

21-Topaz II
July 25, 2017

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

21-Topaz II
July 27, 2017

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

example 4+.jpg

21-Topaz II
August 2, 2017

Hi,

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

Newton in several variables 2.jpg

 

1-Visitor
March 20, 2019

Hi

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

21-Topaz II
March 20, 2019

Hi ptc-3682623,

Answer to the first question:

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