help-octave
[Top][All Lists]
Advanced

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

Re: strange problem


From: Laurent Jacques
Subject: Re: strange problem
Date: Fri, 28 Nov 2003 10:01:28 +0100
User-agent: KMail/1.5.3

On Friday 28 November 2003 00:03, Geraint Paul Bevan wrote:
| The number -2.0817e-17 is -0.000000000000000020817, which is very, very
| close to zero. The error is due to the way that numbers are represented
| in computers.

Of course but I think that the question was:

Why the top-left entry of 
        [1,100;0,1]*[1,0;(-1/100),1] 
is 
        -2.0817e-17
while octave returns the true 0 if you enter
        1 + (100*-1/100)

Does Octave perform some LU decomposing of matrix to realize matrix 
multiplication ? 
This could explain the difference between the two results.

Laurent.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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