

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


Linear Algebra and Geometry - Scientific Computing
n n − 1 n − 2 · · · 3 2 1
n − 1 n − 1 n − 2 · · · 3 2 1
0 n − 2 n − 2 · · · 3 2 1
. . .
n n − 1 n − 2 · · · 3 2 1
n − 1 n − 1 n − 2 · · · 3 2 1
n − 2 n − 2 n − 2 · · · 3 2 1
. . .
with n = 100.
Subsequently, introduce a perturbation = 1. 0 e − 10 to the last row elements of both matrices and
compute the eigenvalues of the perturbed matrices. Graphically represent the eigenvalues and justify
the results.
iterations m max to be executed and relative precision tol. Subsequently, starting form the vector
z = (1, 2 , 3) T , using a tolerance tol=1e-10 find the the eigenvalue of largest modulus of the following
matrices:
Justify the results using the Matlab command eig.
Subsequently, starting form the vector z = (1, 2 , 3)
T and using a tolerance tol=1e-10 determine the
eigenvalue of largest modulus and a corresponding eigenvector of the matrix A 2 of previous exercise.
Fix m max=500,800,1100 and comment the result.
implemented in powerIt.m). Subsequently, apply InvPowerIt.m in order to find the eigenvalue closest
to p = 0.5 of the following matrices
Use the Matlab function eigs.m and comment the results from InvPowerIt.m.
1 2 0 1 − 1 1
− 1 − 1 0 0
by means of Gershgorin’s circles properties. Compare the number of iterations and the computational
cost of the power method and the inverse power method setting a tolerance tol = 1 − 14
number m max and the following stopping criterion: norm(tril(A,-1),inf)<=toll, where tol is an
input argument of the function. Apply this method to the 10-order Hilbert matrix, using m max=
and tol=1.0e-14. Compute the error linked to these eigenvalues, using as correct values the ones from
eig command. After that, execute 100 iterations of QR method applied to the following matrix:
Comment the results.
elements are
aij =
1 for i = j
− 1 , for i < j
0 , for i > j
Compute the determinant, the rank and the singular values of the matrix A and comment the results.
ones. Solve the above system with the Matlab command x=A\b and with singular values decomposition
applied with an less-rank approximation of A obtained neglecting singular values smaller than tolerance
tol = 10
− 12
. Compare relative errors of the two methods.
3 x 1 − 2 x 2 + x 3 + 2x 4 = 1
−x 1 + 2x 3 + x 4 = − 3
5 x 2 − 6 x 3 − x 4 = 7
x 1 + x 2 − x 3 + x 4 = 0
x 1 − x 2 − x 3 − x 4 = − 6
8 x 1 − x 2 + 5x 3 + 2x 4 = 2
Compute the rank of the matrix of the coefficients of the system. Subsequently, compute the solution
of the system in the least-squares sense, having minimum euclidean norm. Verify the result using the
Matlab command pinv. What are all the solutions of the system in the least-squares sense?
dimensions 271×300, by means of a matrix of rank n = 10, 30 , 50 , 70.