DSPRelated.com
Forums

error in the eigenvalues of a three diagonal matrix

Started by tugruladiguzel April 17, 2009
Hey all,
I want to find the eigenvalues of a three diagonal matrix, they comes as in the following form, it seems that the difference between consecutive eigenvalues is 1/2, but after fifth one it doesn't work precisely, could the reason be just that matlab causes a computational roundoff error?
Regards, Adiguzel.

0.00033596275686
0.00165720996201
0.00386786571587
0.00781155609136
0.01562499550164
0.03124999999526
0.06250000000000
0.12500000000000
0.25000000000000
0.50000000000000
1.00000000000000
If you are reading these values on the matlab command window, then what is
observed seems to be truncated which might give you an impression that it
could be a computational roundoff error !!
But, actually if you open that matrix in the array editor, you should see
the complete values (just click on the cell)

Say for example
>> pi

ans
3.1416

while the array editor will actually show you the exact content (double
click on the cell)
3.141592653589793

Good luck !

-Tilak
On Fri, Apr 17, 2009 at 10:02 PM, tugruladiguzel
wrote:

> Hey all,
> I want to find the eigenvalues of a three diagonal matrix, they comes as in
> the following form, it seems that the difference between consecutive
> eigenvalues is 1/2, but after fifth one it doesn't work precisely, could the
> reason be just that matlab causes a computational roundoff error?
> Regards, Adiguzel.
>
> 0.00033596275686
> 0.00165720996201
> 0.00386786571587
> 0.00781155609136
> 0.01562499550164
> 0.03124999999526
> 0.06250000000000
> 0.12500000000000
> 0.25000000000000
> 0.50000000000000
> 1.00000000000000
>
>
>