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

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

[Octave-bug-tracker] [bug #36099] diag(1,N,M) produces NaNs


From: anonymous
Subject: [Octave-bug-tracker] [bug #36099] diag(1,N,M) produces NaNs
Date: Thu, 05 Apr 2012 12:25:51 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

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

                 Summary: diag(1,N,M) produces NaNs
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 05 Apr 2012 12:25:50 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Twan van Laarhoven
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Any

    _______________________________________________________

Details:


octave:1> OCTAVE_VERSION
ans = 3.6.1

octave:2> diag([1],3,3)
ans =

   1.00000   0.00000   0.00000
       NaN   0.00000   0.00000
   0.00000   0.00000   0.00000


Expected result is 

expected> diag([1],3,3)
ans =

   1.00000   0.00000   0.00000
   0.00000   0.00000   0.00000
   0.00000   0.00000   0.00000


On a slightly related note: diag(1,3,3)(1,2)=1.0556e-316, instead of exactly
0.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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