Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (Improved triangular substitutions; adapted from FNC 2.3.5) If B e RnXP has columns b, ..., bp, then we can pose p linear systems at
1. (Improved triangular substitutions; adapted from FNC 2.3.5) If B e RnXP has columns b, ..., bp, then we can pose p linear systems at once by writing AX = B, where X e RrXp whose jth column X; solves Ax; = b; for j = 1, ..., p. (a) Modify backsub.m and forelim.m from Lecture 13 so that they solve the case where the second input is an n x p matrix, for p > 1. (b) If AX I, then X = A-1. Use this fact to write a MATLAB function Itinverse that uses your modified forelim to compute the inverse of a lower triangular matrix. Test your function on at least two nontrivial matrices, that is, compare the numerical solutions against the exact solutions. 1. (Improved triangular substitutions; adapted from FNC 2.3.5) If B e RnXP has columns b, ..., bp, then we can pose p linear systems at once by writing AX = B, where X e RrXp whose jth column X; solves Ax; = b; for j = 1, ..., p. (a) Modify backsub.m and forelim.m from Lecture 13 so that they solve the case where the second input is an n x p matrix, for p > 1. (b) If AX I, then X = A-1. Use this fact to write a MATLAB function Itinverse that uses your modified forelim to compute the inverse of a lower triangular matrix. Test your function on at least two nontrivial matrices, that is, compare the numerical solutions against the exact solutions
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