Assignment2_CompMath
Assignment2_CompMath
kz
Instructions
For each problem, please include:
- Source code with comments explaining all important steps.
- A screenshot of the program output and explanation.
- Include graphs or tables if the task requires them.
Problem:
1. Implement the Jacobi method to solve the system of linear equations:
Required:
1. Provide a detailed calculation of the iterations.
2. Check whether the diagonal dominance criterion is satisfied.
3. Explain how convergence depends on the structure of the system.
Problem:
1. Using Gauss's method, solve the system:
Required:
1. Print the upper triangular matrix and the result of the inverse substitution.
2. Explain why the choice of the pivot is important for numerical stability.
Problem:
1. Solve the following system using the Gauss-Jordan method:
2. Transform the augmented matrix of the system into diagonal form.
Required:
1. Provide the final diagonal matrix and the values of the variables.
2. Explain the advantages of the Gauss-Jordan method over the Gauss method.
Problem:
1. Implement the Gauss-Seidel method for the system:
Required:
1. Provide a table of iterations with current values of variables.
2. Explain how the stopping criterion (accuracy) affects execution time.
Problem:
1. Solve the following system using the relaxation method with parameter ω=1.1:
2. Compare the execution time and number of iterations for ω=1.1 and ω=1.5.
Required:
1. Provide solutions for both values of ω.
2. Explain how the relaxation parameter affects the convergence of the method.
Problem:
1. Solve the following ill-conditioned system:
Required:
1. Derive an analytical and numerical solution.
2. Explain why ill-conditioned systems are sensitive to change.