Solution Using Jacobi and Gauss Seidel Method.

18 ビュー (過去 30 日間)
Pranjal Pathak
Pranjal Pathak 2012 年 1 月 23 日
回答済み: Meysam Mahooti 2019 年 11 月 29 日
Hi,
I am facing problem regarding the solution of the foll problem:
W(m+1)(j,k)=Pm(j,k)+Q(j,k)/2*g(j,k) Where: P(j,k)=[W(j+1,k)+W(j-1,k)+W(j,k+1)+W(j,k-1)]/g(j,k) Q(j,k)=Sy(j,k+1)- Sy(j,k-1)+ Sx(j+1,k)-Sy(j-1,k) m=m-th iterations(say 4) g(j,k)={2, if j=1:N or k=1:N 3, if j=1:N or k=2:N-1, k=1:N or j=2:N-1 4 otherwise} N=128
Sx=sqrt(8).*(9.*X.^3+3.*Y.^2-2)
Sy=sqrt(8).*(6.*X.*Y)
And [X,Y] =meshgrid(-1:2/127:+1,-1:2/127:+1)
Which will give us the Q-matrix
The initial W-matrix is assumed to be a zero matrix having all the elements zero(128x128).
Can anyone help me in solving this problem using 1] Jacobi Method, and 2] Gauss Seidel Method upto a iteration of 4 in MATLAB.
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 1 月 23 日
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup

サインインしてコメントする。

回答 (1 件)

Meysam Mahooti
Meysam Mahooti 2019 年 11 月 29 日

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by