Message Boards Message Boards

0
|
2168 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Solve Laplace equation: how to make the recursion stop?

Posted 4 years ago

Hello,

I'm implementing relaxation method to solve Laplaca equation. When the result is convergent enough, I want the recurrsion stops. But I used Nestlist, and cannot see how to make it stop by itself. I test the error until the error is smaller than 10^(-5), then stop it. But I want the algorithm do it by itself. The algorithm is as following: enter image description here

enter image description here

POSTED BY: Yanliu Li
2 Replies

Have you tried NestWhileList?

POSTED BY: Gianluca Gorni
Posted 4 years ago

I didn't know that, I'll try now. Thanks.

POSTED BY: Yanliu Li
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract