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

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

[Octave-bug-tracker] [bug #40647] Matrix addition error


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #40647] Matrix addition error
Date: Wed, 20 Nov 2013 15:47:55 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0

Update of bug #40647 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

This is a simple case of machine precision overrun. Please understand that
numerical values in Octave are double-precision floating point by default,
which limits the range of significant digits that can be represented.


octave:1> d = [1e-12, 1e-19];
octave:2> d < eps
ans =
   0   1
octave:3> 0 + d - 0
ans =
   1.0001e-12   1.0000e-19
octave:4> 1 + d - 1
ans =
   1.0001e-12   0.0000e+00
octave:5> 1e5 + d - 1e5
ans =
   0   0


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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