[R] EIGEN VECTOR PROBLEM
Berend Hasselman
bhh at xs4all.nl
Fri Apr 22 08:59:47 CEST 2016
> On 21 Apr 2016, at 22:17, MD. HABIBUR RAHMAN <habib.drj at gmail.com> wrote:
>
> Dear Sir,
> I am an R user.
> I am in problem to find eigen vectors in R.
> For the following matrix eigen vectors are not right. I can not understand
> why??
> For the 1st eigen value and 2nd eigen value are same, but the eigen vectors
> are not same.
>
> *HOW CAN I RESOLVE THE PROBLEM??*
>
Please do not post in html as the Posting guide directs.
Your code is a mess because of the html.
You can't resolve the problem: it is non existent.
See: https://en.wikipedia.org/wiki/Eigenvalues_and_eigenvectors#Triangular_matrix_example
>
> *>c=matrix(c(1,0,0,1,2,0,-3,5,2),nrow=3,byrow=T)> eigen(c)$values[1] 2 2
> 1$vectors [,1] [,2] [,3][1,] 0 0.000000e+00
> 0.1230915[2,] 0 8.881784e-17 -0.1230915[3,] 1 -1.000000e+00
Do not use c as a variable name. It is a builtin function.
Do not use T for TRUE; it will lead to tears at some point.
Berend Hasselman
More information about the R-help
mailing list