Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Gauss iteration method-nestlist-stopping criteria

Posted 12 years ago

Hi All, I wanna solve Ax=b system using gauss iteration method. Bu I want the iteration stop when it reached stopping criteria. Instead of giving number of iteration before iteration start, iteration should stop when Norm(b-alast iteration)/Norm(b-afirst iteration)<10^(-10)

I guess we I can use NestWhileList instead of NestList but I could not figure it out.

Any suggestion? I have attached my code.

Thanks in advance..

Selahittin..

Attachments:
POSTED BY: selahittin cinar
4 Replies
POSTED BY: Daniel Lichtblau

I used Length[] and I got 28 that is what I am looking for..

Thanks again..

POSTED BY: selahittin cinar
POSTED BY: selahittin cinar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard
Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use