comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: ANN: Ada 2005 Math Extensions 20120712
Date: Sun, 29 Jul 2012 09:52:08 -0500
Date: 2012-07-29T09:52:08-05:00	[thread overview]
Message-ID: <jv3imm$o6h$1@speranza.aioe.org> (raw)
In-Reply-To: 00b425bc-6af1-4062-be58-f98012d155c6@googlegroups.com

On 7/29/2012 9:34 AM, Ada novice wrote:
> On Sunday, July 29, 2012 3:22:46 PM UTC+1, Nasser M. Abbasi wrote:
>>
>> It is the other way around.
>>
>
> Yes I know about eigenvalues and stability in the complex plane. This is why I
>  said that something would have been terribly wrong if Debian lapack and ACML were
>not agreeing on the eigenvalues.
>

Sorry, I misunderstood you. somehow I read what you said as the
eigenvalues were different.

But different eigenvectors magnitudes is not a problem. It is not
uncommon to see this:

-----------------------------
Matlab:
EDU>> A=[1 2;
          3 4]

EDU>> [eigVectors,eigValues]=eig(A)

eigVectors =

    -0.8246   -0.4160
     0.5658   -0.9094


eigValues =

    -0.3723         0
          0    5.3723
-------------------------

Mathematica:

------------------------------
In[5]:= mat={{1,2},
              {3,4}};

eigenVector=Eigenvectors[mat]//N
Out[6]= {{0.457427,1.},{-1.45743,1.}}

eigenVector=Eigenvalues[mat]//N
Out[7]= {5.37228,-0.372281}

-----------------------------

Maple:
-----------------
A:=<<1|2>,<3|4>>:

evalf(LinearAlgebra:-Eigenvectors(A));
                 [ 5.372281324]  [0.4574271076  -1.457427107]
                 [            ], [                          ]
                 [-0.372281324]  [          1.            1.]
-----------------------

You see, eigenvealuses are all the same (as you also said :), but the
eigenvectors have different normalization. Here Maple and Mathematica
used the same. But Matlab was different. (using default call).

--Nasser




  reply	other threads:[~2012-08-01  2:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 19:44 ANN: Ada 2005 Math Extensions 20120712 Simon Wright
2012-07-13 11:12 ` Ken Thomas
2012-07-14  8:13 ` Ada novice
2012-07-14 10:43   ` Simon Wright
2012-07-14 14:18     ` Ada novice
2012-07-27 19:23       ` Ada novice
2012-07-27 21:03         ` Simon Wright
2012-07-28 13:01           ` Ada novice
2012-07-28 19:10             ` Simon Wright
2012-07-28 19:33             ` Simon Wright
2012-07-29 14:05               ` Ada novice
2012-07-29 14:22                 ` Nasser M. Abbasi
2012-07-29 14:34                   ` Ada novice
2012-07-29 14:52                     ` Nasser M. Abbasi [this message]
2012-07-29 15:02                       ` Ada novice
2012-07-29 15:31                       ` Ada novice
2012-07-30 18:59               ` Ada novice
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox