title: Are eigenvectors returned by R function eigen() wrong?
body: <pre><code>#eigen values and vectors
  a &lt;- matrix(c(2, -1, -1, 2), 2)
  
  eigen(a)
  </code></pre>
  
  <p>I am trying to find eigenvalues and eigenvectors in R. Function <code>eigen</code> works for eigenvalues but there are errors in eigenvectors values. Is there any way to fix that?</p>
  
  <p><a href="https://i.stack.imgur.com/wRzmt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wRzmt.png" alt="code for eigen value and vectors"></a></p>