MTH 719 Applied Linear Algebra
Lab 1 Solutions
Exercise 1
True or False: (Give a proof or a counterexample)
These are all false as discussed in class. The main idea is to nd a single counterexample that
is as simple as possible.
If the number of equation
MTH 719 Applied Linear Algebra
Lab 7
LU Factorization
To nd the LU factorization of a matrix A in Matlab we use the lu command. For example, it
we type
> [L U P] = lu(A)
we get the full LU factorization of A such that LU = P A, where P is a permutation ma
http:/www.rnet.ryerson.ca/~rphan/mth719/w2013
Raymond Phan
Ph.D. Candidate
Department of Electrical & Computer Engineering
Ryerson University
Topics Covered
Introduction
Quick intro to me and contact information
Well be using MATLAB in the course. Yay?
MTH 719 Applied Linear Algebra
Lab 8
This week I have published two test functions to evaluate your programs for Assignment 2. There
are two versions of your test function because samll dierences in the way you may have written
your code will eect the res
MTH 719 Applied Linear Algebra
Lab 7 Solutions
Exercise 1
In Lab 6 we considered the three matrix norms |A|1 , |A|2 and |A| . Write a Matlab function
x = oneNorm(A) where A is a matrix and x = |A|1 . Do this without using Matlabs norm function.
Do the sam
MTH 719 Applied Linear Algebra
Lab 8 Solutions
Exercise 1
Find a nonsingular matrix P such that P A = EA , where
1 2 3 4
A= 2 4 6 7
1 2 3 6
We may perform gauss elimination on the augmented matrix (A|I) which will lead us to
(EA |P ).
In Matlab
A = [1 2
MTH 719 Applied Linear Algebra
Lab 10 Solutions
Exercise 1
Let
51
144
A=
111
102
18 16 14
48 50 41
30
52
36
24 54 35
Find A. That is nd all matrices B such that B 2 = A.
The matrix A is diagonalizable, i.e., A = P DP 1 , where P is an invertible matri
MTH 719 Applied Linear Algebra
Lab 12
QR factorization
Let A be an m n matrix with rank n. Thus m n and the columns of A are linearly
independent. In this case we may nd the reduced and the full QR-factorization of A.
A reduced QR-factorization is an m n
Mathematics 719 Applied Linear Algebra
February 19, 2015
Midterm Test 2
You are allowed to use any Matlab resources, including any m-les you have on a USB stick. Otherwise you
may not use any other resources on the computer, including, but not limited to
MTH 719 Applied Linear Algebra
Lab 12 Solutions
Exercise 1
We should like to design matrices with various properties. Often this is easy to do with diagonal
matrices. However, we wish to create interesting matrices with the desired properties. Let us agre
MTH 719 Applied Linear Algebra
Lab 3
Sparse Matrices
Often matrices have well placed zeros, which makes them easier to work withtheoretically at
least. We already know that in principle it takes one or two orders of magnitude less ops to solve a
triangula
MTH 719 Applied Linear Algebra
Lab 6 Solutions
Exercise 1
Recalling the theorems we proved in class for calculating matrix norms |A|1 , |A|2 and |A| ,
write Matlab functions of the form N = myNorm(A) that calculate these norms without using
Matlabs norm f
MTH 719 Applied Linear Algebra
Lab 10
Standard Inner Product
Given two vectors x and y in Rn their standard inner product is dened to be the number
T
x y = x1 y1 + x2 y2 + + xn yn . This is also called the dot product, and many authors use the
notation x
MTH 719 Winter 2013 Final Exam
1. F
2. F
3. F
4. T
5. F
6. T
7. F
8. T
9. F
10. T
11. F
12. F
True of False
1. F
2. F
3. F
4. T
5. F
6. F
7. F
8. T
9. T
10. T
MTH 719 Applied Linear Algebra
Lab 6
Norms and Conditioning Numbers
For a vector X Rn we have dened three norms,
|X|1
= |x1 | + |x2 | + + |xn |
|X|2
=
|X|
=
|x1 |2 + |x2 |2 + + |xn |2
maxcfw_|x1 |, |x2 |, , |xn |
Given a vector X in Matlab, we may nd the
Mathematics 719 Applied Linear Algebra
February 12, 2015
Midterm Test 1
You are allowed to use any Matlab resources, including any m-les you have on a USB stick. Otherwise you
may not use any other resources on the computer, including, but not limited to
MTH 719 Numerical Analysis I
Lab 1
MATLAB and Linear Algebra
MATLAB is designed to do all of the operations of linear algebra. If there is something that
appears in a text book regarding linear algebra, then there is a corresponding function in MATLAB
to
MTH 719 Applied Linear Algebra
Lab 2
MATLAB and Matrices
Care must be taken when using the * operator for multiplication and the ^ operator for exponentiation. For scalars, a and b, there is no ambiguity in the expressions a*b and, for example, a^n.
But f