Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MAE 384: Numerical Methods Problem 7 ONLY. (other problems listed to provide con

ID: 3884776 • Letter: M

Question

MAE 384: Numerical Methods


Problem 7 ONLY. (other problems listed to provide context)

Problem 4 (5 points)

Modify your Matlab function "myGaussJordan" from previous Homework to include partial pivoting. Name the new function "myGaussJordanPartialPivot" using the same input and output variables as before.

Problem 5 (3 points)

Write a Matlab function "myInverse" that takes as input a square matrix A and returns as output the inverse of A using Gauss-Jordan with partial pivoting. Within the function, use a call to myGaussJordanPartialPivot to find the inverse.

Problem 6 (5 points)

Write a Matlab function "myOneNorm" that takes as input a matrix A and returns as output the one-norm of the matrix.

Problem 7 (3 points)

Write a Matlab function "myCondOne", that takes as input a matrix A and returns as output the condition number of the matrix using the one-norm. Within the function call the functions "myInverse" and "myOneNorm" you developed in problems 5 and 6.

Explanation / Answer

I am writing a lagmultiplier.m file whose function is to solve non-linear equality constrained optimization problems. I start by writing the necessary commands, then it reaches to a point where the initial system(objective and constraint eqns) reduces to a system of linear eqn. Luckily for me, I have already written a mygaussjordan.m file(which solves system of linear eqns by means of reduce row echelon given an input augmented matrix, A); as such I feel that I don't need to waste time writing code again to be implemented in solving the system of linear eqns obtained in my lagmultiplier.m file.