Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi everyone,
I programmed a Newton-Method, but when I want to get the vector with results, there ist a failure message saying: "This Value Must be a Matrix of Scalar Elements". I unfortunatelly can´t see the mistake and already run out of ideas, but maybe some of you guys could know the solution.
Thanks!
Solved! Go to Solution.
but I still ends up with the same error.
Right click on the vertical lines (absolute value) and change from "Square Matrix Determinant" to "Absolute Value".
can you attach the file please?
Alan is right, your inequality needs reversed. I also had to cheat the index value:
I think your "while" condition should have "> eps" rather than "< eps". However, this might not be the only problem, so upload your file as Volker suggested (you have to zip it first).
Alan
Thank for that fast answers. So this is the original file, the inequality sign was of course wrong.
But unfortunatelly that doesn´t solve the problem.
Verify that you are properly using literal subscripts (.) and array subscripts ([).
I also agree with Alan & Volker.
Maybe this could solve your problem.
I made the program by myself, so you should maybe convert it to your variabe names.
But principal it works.
Have fun...
Thanks for typing it.
Your file works on my pc. I changed mine, so that it is more or less identical with yours, but it still ends up with the same error.
.
very curious...
I loaded your file and had the same error.
Then i copied my routine into your sheet, changed xneu to xnew and it works.
Try the attached file please and let me know how does it works.
but I still ends up with the same error.
Right click on the vertical lines (absolute value) and change from "Square Matrix Determinant" to "Absolute Value".
Impressive!
I changed it too and it works.
Simple changes with effective consequences.
For two equations
"Solution without animation is not solution!"
(Valery Ochkov)
Thanks to all for all the useful answers!