Question: In - class exercise: forward substitution Write a Python file that has a function that implements forward substitution. Please follow the requirements below for full

In-class exercise: forward substitution
Write a Python file that has a function that implements forward substitution. Please follow the requirements below for full credit:
Name the file
linsolve.py.
The first line of the function definition should be def forward_sub(lu_fac, b) :
where lu_fac is a 2d NumPy array and b is a 1d NumPy array.
lu_fac can be assumed to be the LU decomposition of some matrix, with L in the lower part (assume Lii=1).
forward_sub should return y, a 1d NumPy array, that holds the solution to Ly=b.
Include a docstring in the function and use -=.
1
 In-class exercise: forward substitution Write a Python file that has a

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!