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

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

[Octave-bug-tracker] [bug #36368] matrix operation incorrect


From: anonymous
Subject: [Octave-bug-tracker] [bug #36368] matrix operation incorrect
Date: Wed, 02 May 2012 05:48:07 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0

URL:
  <http://savannah.gnu.org/bugs/?36368>

                 Summary: matrix operation incorrect
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 02 May 2012 05:48:06 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: muslim
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,

When I running the code below, I get wrong answer.


A=diag(exp(2*pi*1i*[0:2]/3))
A =

Diagonal Matrix

   1.00000 + 0.00000i                    0                    0
                    0  -0.50000 + 0.86603i                    0
                    0                    0  -0.50000 - 0.86603i

But:

A^2
ans =

Diagonal Matrix

 Columns 1 and 2:

   6.4406e-247 + 5.3118e+006i                            0
                            0   4.9279e+247 + 4.4528e+252i
                            0                            0

 Column 3:

                            0
                            0
   4.4600e-086 + 1.7804e-306i

which is wrong( but A*A gets right)





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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