help-octave
[Top][All Lists]
Advanced

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

determinant of integer values


From: Peter Lempel Søndergaard
Subject: determinant of integer values
Date: Wed, 01 Mar 2006 05:20:03 +0100

Dear list,

the following code

A=[1 0; 1 12];
det(A)

produces:

ans = 12.000

instead of the better result ans = 12 .

I am using Fedora 4 with the lastest rpms installed, Octave 2.1.72 and
Octave-forge.

This is slightly annoying, because gcd will not work with 12.000, so I
have to round the number. Matlab gets this one correctly.

Cheers,

Peter




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