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

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

[Octave-bug-tracker] [bug #44849] expm() produces incorrect result


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #44849] expm() produces incorrect result
Date: Wed, 15 Apr 2015 18:40:46 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33

Update of bug #44849 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #2:

I'm afraid you made a typo.
On the page you mentioned, matrix A is defined as:

A = [0,-0.785398,0;0.785398,0,0;0,0,0];

rather than 

A = [0,-0.785398,0;0.785398,0,0;0,0,1];  ## See last element!

With the proper A, both Octave-3.8.2 and Octave-4.0.0-rc4 do:

>> A = [0,-0.785398,0;0.785398,0,0;0,0,0];
>> expm(A)
ans =

   0.70711  -0.70711   0.00000
   0.70711   0.70711   0.00000
   0.00000   0.00000   1.00000


With that out of the way, how about the n=47 and n=111 sized matrices? Do you
have examples with expected outcomes?

BTW Octave-3.6.4 is quite old. Better upgrade to 3.8.2 at least, or wait a
month or so and you'll have 4.0.0.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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