Hi,
i am trying to solve non-linear equations using gauss-siedel. somehow, the code take longer to run. please advise thanks
![]()
Please Login or Register to view this content.
Hi,
i am trying to solve non-linear equations using gauss-siedel. somehow, the code take longer to run. please advise thanks
![]()
Please Login or Register to view this content.
Last edited by hitsujicute; 03-31-2013 at 06:22 PM.
Hi and welcome to the forum.
Pls take few minutes to read the rules of the forum, because:
Your post does not comply with rule 3 of our forum.Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Select your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button).
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
sorry about that. please kindly refer the attached excel file
When exacly do you want to leave the Do Loop?
This is saying loop until all the conditions are met.
Also, you have this,![]()
Please Login or Register to view this content.
which I think is supposed to deal with the problem of an infinite loop, but all it does is put 'diverges' in a cell.![]()
Please Login or Register to view this content.
If you want to exit the loop if counter exceeds maxItteration perhaps you should add Exit Do before the End If.
PS Can you edit your post to add code tags? Not everyone will be able to download your workboook
If posting code please use code tags, see here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks