exercice set 7

4
Name: BAGARAGAZA Romuald Student number: M2014028 Assignment 5 Numerical Analysis P451, EXERCISE SET 3 AND 4 (e) Exercice Set 7.3 3: Using Jacobi method to solve the linear systems in Exercise 1, with TOL=10ˉ³ in the L∞ norm. Solution = 0; = 0; = 0; = ( - +1)/3; = (- - )/6; = (- - +4)/7; xx= [ - ]; i=1; While norm (xx,inf)≥ 1 1

Upload: karen-johnson

Post on 21-Dec-2015

214 views

Category:

Documents


1 download

DESCRIPTION

FDH

TRANSCRIPT

Page 1: Exercice Set 7

Name: BAGARAGAZA RomualdStudent number: M2014028Assignment 5Numerical Analysis

P451, EXERCISE SET 3 AND 4 (e)

Exercice Set 7.3

3: Using Jacobi method to solve the linear systems in Exercise 1, with

TOL=10 ³ in the L∞ norm.ˉ

Solution

= 0;

= 0;

= 0;

= ( - +1)/3;

= (- - )/6;

= (- - +4)/7;

xx= [ - ];

i=1;

While norm (xx,inf)≥ 1

= ;

= ;

1

Page 2: Exercice Set 7

= ;

= ( )/3;

= ( )/6;

= ( )/7;

xx= [ - ];

i=i+1endinorm(xx,inf)

i=9ans= 7.5076e-004

= 0.0351

= -0.2366

= 0.6581

4: Repeating Exercise 3 by the Gauss-seidel

Algorithm.

Solution

= 0;

= 0;

1

Page 3: Exercice Set 7

= 0;

= ( )/3;

= ( )/6;

= ( )/7;

xx= [ - ];

i=1

While norm (xx,inf)≥ 1

= ;

= ;

= ;

xx= [ - ];

i= i+1;endinorm(xx,inf)

i=6ans= 7.9814e-004

= 0.0354

1

Page 4: Exercice Set 7

= -0.2368

= 0.6578

1