I haven't done Linear Algebra in years...
Here is the task I was given as best as I understand it.
"Write code in R to calculate the inverse of a nxn matrix using eigenvalues". I have some knowledge of R, but I don't remember anything about using eigenvalues to find an inverse matrix. Guass-Jordan can be used to find an inverse, but that has nothing to do with eigenvalues. At least I don't think it does.
I know that
det(A)=the product of eigenvalues, but not sure how or if this helps.
Once the code is written I believe we will be modifying it slightly. Otherwise we could just use "solver" in R.
Here is the task I was given as best as I understand it.
"Write code in R to calculate the inverse of a nxn matrix using eigenvalues". I have some knowledge of R, but I don't remember anything about using eigenvalues to find an inverse matrix. Guass-Jordan can be used to find an inverse, but that has nothing to do with eigenvalues. At least I don't think it does.
I know that
det(A)=the product of eigenvalues, but not sure how or if this helps.
Once the code is written I believe we will be modifying it slightly. Otherwise we could just use "solver" in R.