Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started