I'm trying to compute the eigenvectors for:
M=(144100)
Both myself and Mathematica report the eigenvalues as:
λ1=12(101+√9865)≈100.161λ2=12(101−√9865)≈0.838647
But when I ask for eigenvectors, the answer changes depending on whether I input the numbers as integers or floating-point numbers.
When I ask for Eigenvectors[{{1, 4}, {4, 100}}]
I get:
v1=(18(−99+√9865),1)≈(0.0403383,1)v2=(18(−99−√9865),1)≈(−24.7903,1)
When I ask for Eigenvectors[{{1.0, 4.0}, {4.0, 100.0}}]
I get:
v1≈(0.0403055,0.999187)v2≈(−0.999187,0.0403055)
When I calculate by hand, I get a solution which matches the first query.
So, am I going crazy and overlooking some important maths (not unlikely, very tired...) or is this a bug?
Possible related issues?:
Answer
Eigenvectors for inexact arguments are normalized:
Eigenvectors[{{1, 4}, {4, 100}}]
% // N
Normalize /@ %% // N
Eigenvectors[{{1.0, 4.0}, {4.0, 100.0}}]
(*
{{1/8 (-99+Sqrt[9865]),1},{1/8 (-99-Sqrt[9865]),1}}
{{0.0403383,1.},{-24.7903,1.}}
{{0.0403055,0.999187},{-0.999187,0.0403055}}
{{0.0403055,0.999187},{-0.999187,0.0403055}}
*)
Comments
Post a Comment