%% Matlab HW 5: Solve 42, 43, and 45 in Matlab (Section 2.3) % % New commands: % cond(A) is the condition number for matrix A. % inv(A) is the inverse of matrix A. % norm(x-y) is the magnitude (or distance) between vectors x and y. % norm(A-B,'fro') is the distance between matrices A and B % using the Frobenius norm. % hilb(n) is an n times n Hilbert matrix (matrix A in #44 is: hilb(5)) %% 42: Let A be the matrix below. % - Find the condition number % - Construct a random vector x in R^4 and compute Ax=b. % - Use a matrix program to find the solution x1 to Ax=b. % - How many digits agree between x and x1? % - How close is Ax1 to b? %% 43: %% 45: