Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART I. JACOBI METHOD Using the C ++ programming language, implement an algorithm that executes the Jacobi iterative method. The algorithm must execute the following:

PART I. JACOBI METHOD Using the C ++ programming language, implement an algorithm that executes the Jacobi iterative method. The algorithm must execute the following: 1. Ask the user for the size of the square linear system (number of equations equal to the number of variables) to solve (greater than or equal to 2). 2. Ask the user for the coefficients of the linear system. 3. Verify if the system satisfies the property of being strictly dominant. a) If the system does not satisfy you, display a warning message and ask the user if they want to enter new values for the coefficients. b) If the system satisfies it, continue with the following steps. 4. Solicite al usuario el nivel de precisin (dcimas, centsimas, milsimas, etc.) en la solucin que se obtendr. 5. Ejecute el mtodo iterativo de Jacobi. a) Ejecute el mtodo hasta obtener soluciones sucesivas que satisfagan la condicin

image text in transcribed

donde image text in transcribed denota el valor obtenido de la variable image text in transcribed en el nmero de iteracin j y image text in transcribed representa el nivel de presin deseado.

6. Implemente las soluciones aproximadas en la pantalla.

7. Obtenga la solucin exacta del sistema y visualcela junto con los valores de la ltima iteracin 8. Grafique el comportamiento de las dos primeras variables del sistema

PARTE II. MTODO GAUSS-SEIDEL Modificar la parte 5 del algoritmo Jacobi para implementar el mtodo Gauss-Seidel

max {\m*+1 2||}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago