octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42097] 64bit Slackware, eig returning incorre


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #42097] 64bit Slackware, eig returning incorrect results
Date: Fri, 11 Apr 2014 18:13:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Iceweasel/28.0

Follow-up Comment #6, bug #42097 (project octave):

Something is awfully wrong on your side. These are my results:


octave:7> A = [0 1 0; 0 0 1; 1 0 0]
A =

   0   1   0
   0   0   1
   1   0   0

octave:8> format long
octave:9> [V, D] = eig(A)
V =

   0.577350269189626 + 0.000000000000000i   0.577350269189626 -
0.000000000000000i  -0.577350269189626 + 0.000000000000000i
  -0.288675134594813 + 0.500000000000000i  -0.288675134594813 -
0.500000000000000i  -0.577350269189626 + 0.000000000000000i
  -0.288675134594813 - 0.500000000000000i  -0.288675134594813 +
0.500000000000000i  -0.577350269189626 + 0.000000000000000i

D =

Diagonal Matrix

  -0.500000000000000 + 0.866025403784439i                                     
  0                                        0
                                        0  -0.500000000000000 -
0.866025403784439i                                        0
                                        0                                     
  0   1.000000000000000 + 0.000000000000000i

octave:10> A*V -V*D
ans =

  -5.55111512312578e-17 - 6.10622663543836e-16i  -5.55111512312578e-17 +
6.10622663543836e-16i  -1.11022302462516e-16 + 0.00000000000000e+00i
  -1.11022302462516e-16 + 2.22044604925031e-16i  -1.11022302462516e-16 -
2.22044604925031e-16i  -4.44089209850063e-16 + 0.00000000000000e+00i
   2.22044604925031e-16 + 1.11022302462516e-16i   2.22044604925031e-16 -
1.11022302462516e-16i   2.22044604925031e-16 + 0.00000000000000e+00i


How did you compile Octave? Which implementation of LAPACK are you using?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42097>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]