Access Millions of academic & study documents

Math 2318 Spring 2022

Content type
User Generated
Subject
Linear Algebra
School
Houston community college
Type
Homework
Showing Page:
1/15

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/15

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/15

Sign up to view the full document!

lock_open Sign Up
Showing Page:
4/15

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 15 pages?
Access Now
Unformatted Attachment Preview
1) 2) 3) 4 6) 7) 8) 9) 10) close all clear clc A = 0.5*[1 1 1 1; 1 1 -1 -1; 1 -1 1 -1; 1 -1 -1 1]; fprintf('Part (a)\n----------------------------------------\n') fprintf('Norms:\n') for i = 1:size(A,2) fprintf('Norm of Column %d: %.4f\n', i, norm(A(:,i), 2)) end fprintf('\nInner Products:\n') for i = 1:size(A,2) for j = i + 1:size(A,2) fprintf('a%d . a%d = %.4f\n', i, j, sum(A(:,i).*A(:,j))) end end fprintf('\nPart (b)\n----------------------------------------\n') u = randi([0 9], 4, 1); v = randi([0 9], 4, 1); disp('u ='), disp(u), disp('v ='), disp(v) fprintf('Norm of u : %.4f\n', norm(u, 2)) fprintf('Norm of Au: %.4f\n', norm(A*u, 2)) fprintf('Norm of v : %.4f\n', norm(v, 2)) fprintf('Norm of Av: %.4f\n', norm(A*v, 2)) Math 2318 Spring 2022 fprintf('Norm of Column %d: %.4f\n', i, norm(A(:,i), 2)) fprintf('a%d . a%d = %.4f\n', i, j, sum(A(:,i).*A(:,j))) ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4