Question: Write a function forwardSubstitution that takes three input arguments in this order: a lower triangular matrix L , a permutation matrix P , and a
Write a function forwardSubstitution that takes three input arguments in this order: a lower triangular matrix a permutation matrix and a column vector The function's output argument should be a column vector comprising the solution to the equation Check that the input matrices and vector have compatible sizes and return a value of if they are incompatible.
Write a function backSubstitution that takes an upper triangular matrix and a column vector in that order, as input. The output should be a column vector that is the solution to the equation Check that the input matrix and vector have compatible sizes and return a value of if they are incompatible.
DO NOT USE COLON NOTATION
USE LOOPS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
