Course Solutions Uncategorized (Solved) : 122 Finish Following Matlab Function Program Function X1 R1 X2 R2 Solve B Solves Linear Sy Q27450046 . . . .

(Solved) : 122 Finish Following Matlab Function Program Function X1 R1 X2 R2 Solve B Solves Linear Sy Q27450046 . . . .

 

12.2 Finish the following MATLAB function program: function [x1, r1, x2, r2] my solve(A,b) % solves linear systems using the LU decomposition with pivoting % and also with the built-in solve function Ab. % Inputs: A -- the matrix bthe right-hand vector % Outputs: x1 -- the solution using the LU method ri the norm of the residual using the LU method x2the solution using the built-in method r2the norm of the residual using the built-in method Using format long, test the program on both random matrices (randn(n,n)) and Hilbert matrices (hilb(n)) with n large (as big as you can make it and the program still run). Print your program and summarize your observations. (Do not print any random matrices or vectors.)

12.2

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post