## Description

1. Write Matlab codes for Exercise 1.4.16. Test them on matrices in Exercise 1.4.22.

2. Exercise 1.4.23.

3. Write Matlab codes to compute LU factorizations for square matrices, whose leading principal

submatrices are all nonsingular. The output should be a unit lower triangular L and an upper

triangular U such that the product LU equals the input square matrix.

Apply your code to randomly generated matrices, by Matlab command randn(n).

4. Write Matlab codes for Exercise 1.7.40 part (a). Apply your codes to positive definite matrices

A = BT B, where B is a random square matrix (use B = randn(n) in Matlab).

1