Numerical analysis,results of methods

  • MHB
  • Thread starter evinda
  • Start date
  • Tags
    Numerical
In summary, the person is asking for the results of an example using an initial value, an array, a specific b, MAXIT, and a small number ε to check their output for two codes they have written in Matlab to implement the Jacobi and Gauss Seidel method. They also provided an example with specific values for A, x_{0}, b, MAXIT, and ε and are asking for the solution for x.
  • #1
evinda
Gold Member
MHB
3,836
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:

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

are valid.

Could you give me the results of an example with an initial value [tex] x_{0} [/tex],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
  • #2
If,for example:

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

which should be the solution of x??
 

Related to Numerical analysis,results of methods

1. What is numerical analysis?

Numerical analysis is a branch of mathematics that deals with the development, analysis, and implementation of algorithms for solving mathematical problems. It involves the use of numerical methods and techniques to approximate solutions to problems that cannot be solved analytically.

2. Why is numerical analysis important?

Numerical analysis is important because it allows us to solve complex mathematical problems that cannot be solved analytically. It is also used to analyze and improve existing numerical methods and algorithms, which are essential for many scientific and engineering applications.

3. What are some common methods used in numerical analysis?

Some common methods used in numerical analysis include root-finding methods, interpolation and extrapolation techniques, numerical integration, and differential equation solvers. Other methods include optimization algorithms, curve fitting, and numerical linear algebra techniques.

4. How are the results of numerical analysis methods evaluated?

The results of numerical analysis methods are evaluated by comparing them to known analytical solutions or experimental data. The accuracy and efficiency of the methods are also evaluated by measuring error and convergence rates.

5. What are some limitations of numerical analysis?

Some limitations of numerical analysis include the reliance on initial assumptions and approximations, potential for round-off and truncation errors, and the need for significant computational resources for complex problems. It is also important to consider the stability and convergence of numerical methods when dealing with non-linear systems or problems with multiple solutions.

Similar threads

  • General Math
Replies
15
Views
4K
  • General Math
2
Replies
38
Views
7K
Replies
27
Views
5K
  • General Math
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
3K
Replies
3
Views
959
  • Computing and Technology
Replies
4
Views
1K
Replies
1
Views
2K
Replies
19
Views
1K
Replies
4
Views
1K
Back
Top