Numerical Linear Algebra
Numerical Linear Algebra
1 Task 1
The dimension of matrix A is 50 × 12, number of rows is 50 and number of columns is 12.
The rank of matrix A is: 12 (full rank)
The Condition number of A is: 1.171777 × 108
2 Task 2
The degree of the interpolating polynomial is: 11 since the number of columns is 12.
3 Task 3
3.1 Mathematical Formulation and correct number of Digits
1
0.5
m ≤ log T
Cond (A A) × εmach
m≤0
Hence, there is 0 correct digit(rounding to the nearest power of 10)
Ra = y (3)
Correct digits
Cond(R) × ϵmach ≤ 0.5 × 10−m
2
0.5
m ≤ log
Cond (R) × ϵmach
m≤8
Hence, there are 8 correct digit
Correct digits
Cond(R) × ϵmach ≤ 0.5 × 10−m !
0.5
m ≤ log σmax
σmin
× ϵmach
3
Algorithm 5 MATLAB Implementation SVD
Require: A (design matrix), b (target values)
Ensure: a = A† b (solution vector)
Compute the SVD using MATLAB function svd(A,0): A = U ΣV T
Compute PseudoInverse of A : A† = V Σ† U T
Solve the linear system a = A† b for a
return a
m≤7
Hence, there are 7 correct digit
4
Figure 2: Interpolating polynomial and the original function
5
3.3 Evaluating and Tabulating the Residuum
Comment: The method that would be best use in order to obtain accurate fit is the svd
pseudo-inverse method because it has the smallest 2 norm and ∞-norm