Question: Use Crout reduction to convert a square matrix A into the product of triangular matrices LU. Use the MATLAB commands L = zeros(n) and U

Use Crout reduction to convert a square matrix A into the product of triangular matrices LU. Use the MATLAB commands L = zeros(n) and U = eye(n) to initialize matrices L and U, and then preform a reduction by implementing the algorithm for k = 1:n for I = k:n L_ik = A_ik - sigma^k-1_m=1 L_im U_mk for j = k + 1: n U_kj = (A_kj - sigma^k-1_m=1 L_km U_mj)/L_kk where A is a square matrix of dimension n notelementof n, L will be a lower-triangular matrix of dimension n notelementof n and U will be an upper-triangular matrix of like dimension n notelementof n. No pivoting is to be programmed into your code. This function must have the interface [L, U] = crout_LU (A) and it needs to verify that A is a square n notelementof n matrix with numeric elements, where n is arbitrary; if not your code should terminate with an error. It should write a warning message to the command window if any diagonal element of the reduced matrix L is zero valued
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
