MHB Numerical analysis,results of methods

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Numerical
AI Thread Summary
The discussion focuses on implementing the Jacobi and Gauss-Seidel methods in MATLAB for solving linear systems. The user seeks assistance in verifying the output of their code by providing specific example parameters, including an initial guess, matrix A, vector b, maximum iterations (MAXIT), and a small epsilon (ε). They present a sample matrix A, initial value x0, vector b, and the values for MAXIT and ε, asking for the expected solution. The goal is to ensure the implementation stops correctly based on the defined convergence criteria. Providing the solution for the given parameters will help validate the accuracy of the user's code.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hi!
I have written two codes in matlab,to implement the Jacobi and Gauss Seidel method.Both of the programs should stop either if the number of iterations surpass the maximum number of iterations MAXIT or if one of these conditions/or both of them:

\left \| x_{k}-x_{k-1} \right \|_{2}<ε , \left \| b-Ax_{k} \right \|_{2}<ε

are valid.

Could you give me the results of an example with an initial value x_{0},an array A ,a specific b,a specific MAXIT and a specific small number ε,so I can check my output?
 
Last edited:
Mathematics news on Phys.org
If,for example:

A=[3 2 1 5;6 2 1 3;5 5 6 1;1 2 3 9]
x_{0} =[0;0;0;0]
b=[1;2;3;4]
MAXIT=20
ε=0.00001

which should be the solution of x??
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Replies
15
Views
4K
Replies
38
Views
7K
Replies
27
Views
5K
Replies
1
Views
2K
Replies
1
Views
3K
Back
Top