Issue with Newton-Method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Issue with Newton-Method
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.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
can you attach the file please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alan is right, your inequality needs reversed. I also had to cheat the index value:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Verify that you are properly using literal subscripts (.) and array subscripts ([).
I also agree with Alan & Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Impressive!
I changed it too and it works.
Simple changes with effective consequences.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
For two equations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
"Solution without animation is not solution!"
(Valery Ochkov)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks to all for all the useful answers!
