I've been trying solve 5x5 matrix for some time method of newton but something is not correct. Anybody can help?
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.
Now is ok. I've done but allways I have 0. Why?
Because for any vector x and any value t. So newton always returns a vector with all zeros.
You should always test your functions with dummy data to see if they do what they are intended to.
Thanks for help. Would you mind telling me how many is t for a sample in attachment?
Sorry, but I don't understand your question.
As written above the value of t does not matter at all and so far I see nothing has changed in your sheet in that respect.
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.
To simplify the calculations and to reduce the calculation time, it is convenient, both for me for an easy understanding, but also for you, for example, to simplify and reduce expressions and equations in this way:
furthermore, since the letter l is easily confused with the number one, it is advisable to change the font only for that character by assigning it to user1 through the format equation panel shown here: