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 L, a permutation matrix P, and a column vector b. The function's output argument should be a column vector c comprising the solution to the equation Lc=Pb. 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 U and a column vector c, in that order, as input. The output should be a column vector x that is the solution to the equation Ux=c. 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
 Write a function forwardSubstitution that takes three input arguments in this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!