Title: Linear Algebra Using R
1Linear Algebra Using R
2Defining Vectors
Defines a vector with each component specified
by the user.
Defines a vector with ascending values.
Defines an empty vector of the declared length.
3Playing With Vectors
Returns the dot product of the vectors v and w.
Returns the length of the vector v.
Returns the norm or magnitude of the vector v.
4Defining Matrices
Defines a matrix with 6 entries, 2 rows and
entries given by column.
Defines a matrix with 6 entries,2 rows and
entries given by row.
Defines a matrix with 2 columns.
Defines a diagonal matrix with specified entries.
5Matrix Operations
Returns the sum of two matrices.
Returns the transpose of a matrix.
Returns the vector Av.
Returns the matrix AB.
6Matrix Operations
Returns the inverse of the matrix A.
Returns the solution to Ax b, note that
solve(A,b) will also work.
Returns the determinant of A.
7Finding Eigenvalues and Vectors
The eigen() command will return a vector of
eigenvalues and a matrix with the eigenvectors
as columns.