Module 5 Assignment

 Module 5 Assignment

Github Repository: https://github.com/christilly/LIS-6371-USF

    For this assignment, I followed the outline given by Dr. Friedman in his announcement. My first attempt at the assignment was unsuccessful since running solve() on the two matrices gave the two errors of A being 0 and B not being a square matrix, therefore being unable to find the inverse matrix. 

    By following the assignment, I first made the two matrices A and B, with A being 10x10 and B being 10X100. Then, I created two new matrices (A_T and A_B) that are the transposed versions of A and B. I then made two vectors, with a being 10 values and b being 100 values, to scale the transposed A_T and B_T matrices into the matrices scale_A and scale_B. I made the two vectors those sizes to match the number of columns to scale_A and scale_B. Lastly, I created new_matrix where I multiplied scale_A and scale_B. The final result is successfully shown when printing new_matrix. However, I could not run solve() on this matrix because it is not square, so I ran solve() on the example matrix Dr. Friedman put in his announcement. 

    Through this module I learned several things about matrices and matrix operations. I learned that two matrixes can only be multiplied when the number of columns in the first matrix is equal to the number of rows in the second matrix if they are not equal in size already. I also learned that there are different operators when dealing with matrix/matrix or matrix/scalar operations. 

Weekly readings: 

  • Matloff Chapter 8

Comments

Popular posts from this blog

Module 10 Assignment

Module 1 Assignment