Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

by using R Write a function hoteling.deflate, that finds all the eigenpairs for

ID: 3852939 • Letter: B

Question

by using R Write a function hoteling.deflate, that finds all the eigenpairs for a symmetric matrix. The function should return a list. The first thing in the list is a vector containing the eigenvalues and the second thing in the list is a matrix containing the normalized eigenvectors in columns. Create a 4x4 and an 8x8 symmetric matrix. Run your function on each matrix and compare your results to those obtained by the R eigen function. Use options(digits = 15) to print your results. Turn it with your function listing and the results you obtained when running the cases mentioned in the previous paragraph. The function should have error checks on the input. It should be well-commented. .

Explanation / Answer

function.name<-function(arg1,arg2,arg3=2,)
{
newvar<-sin(arg1)+sin(arg2)
newvar/arg3
}