Piar CSNM2020 Exo2
Piar CSNM2020 Exo2
Bruno PIAR
Monday, September 14, 2020
Due Thursday, October 1, 2020
B Exercice 2 – The objective is here to review some basics of linear algebra. The following
book will be used: [Meyer, Matrix Analysis and Applied Linear Algebra, 2000].
1 Understand Gaussian elimination (section 1.2), implement it (without pivoting) and
test the implementation on the following system (page 5):
2x + y + z = 1
6 x + 2 y + z = −1
−2 x + 2 y + z = 7
2 x1 + 2 x2 + 6 x3 = 4
2 x1 + x2 + 7 x3 = 6
−2 x1 − 6 x2 − 7 x3 = −1
All the implementations will be done using numpy ndarray and vectorized operations.
Within each function, more than one level of indentation should not be necessary.