Question: Write a function x = backSubst ( Z , y , k ) that performs back - substitution recursively to solve Zx = y .
Write a function x backSubstZ y k that performs backsubstitution recursively to solve Zx yALLOW one loop here is example of forward substitution
function y fwdSubstLbk
Foward substitution
mnsizeL;
if ~existk If first call no k param given, but k
k;
end
ybkLkk;
if k n Recursion step
l zerosk;Lk:mk;
y y;fwdSubstLbylk;
end
here is already function:
function A B elimmatAg g
Assuming Ag is a square matrix
n sizeAg;
Initialize elimination matrices
A eyen;
B eyen;
Perform elimination
A: gAg: g Agg g;
B: g Ag: g Agg g;
end
Write function L U myLUA that reuses elimMat to give an LU factorization of A
get matrix L and matrix Uallow one loop
write mfile script to execute program.
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
