help-octave
[Top][All Lists]
Advanced

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

strange problem


From: Gerald Ebberink
Subject: strange problem
Date: Thu, 27 Nov 2003 23:11:31 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031125

Hi all,

I have a strange problem with a simple matrix multiplication
and maybe you could help out (and maybe it was asked a dozen times before, but I could not find it in the archives)

when i give the following command:
 octave:1> [1,100;0,1]*[1,0;(-1/100),1]

I get this result

ans =

   -2.0817e-17    1.0000e+02
   -1.0000e-02    1.0000e+00

which as far as I know is correct except for the upper left value.
If you do it by hand you would get something like
1 + (100*-1/100) = 0

octave agrees on with me on that part

octave:2> 1 + (100*-1/100)
ans = 0

so how does this strange number gets up there?

and even better is there a solution because this gives me a unworkable solution in the end.


I've used
GNU Octave, version 2.1.49 (i686-pc-linux-gnu).
on a 2.4.2x kernel (several computers)

Kind regards
        Gerald Ebberink



--
Ing. Gerald Ebberink
Laser Technician

Kernfysisch Versneller Instituut
Rijksuniversiteit Groningen
Zernikelaan 25
9747 AA Groningen
The Netherlands
tel: +31 50 363 3518
lab: +31 50 363 3588
fax: +31 50 363 4003



-------------------------------------------------------------
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]