Question: Write two functions with python to perform forward and back substitution. define a function # name : forward _ subs # inputs : G (

Write two functions with python to perform forward and back substitution.
define a function
# name : forward_subs
# inputs : G (2D numpy array), b (1d numpy array)
# output : x (1d numpy array), solution to Gx=b
# note 1 : assume the sizes are compatible
# note 2 : assume G is square, invertible, and lower triangular
# note 3 : the computation should be done using for loops
# rather than a built-in numpy function
# note 4 : the function should work for square matrices of any size

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 Programming Questions!