[Top][All Lists]

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

[Octave-bug-tracker] [bug #32924] lcm yields wrong results

From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #32924] lcm yields wrong results
Date: Sun, 27 Mar 2011 16:05:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110109 Riverdragon/3.6.13 (like Firefox/3.6.13)

Update of bug #32924 (project octave):

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


Follow-up Comment #1:

The lcm function is meant as a simple convenience, but it doesn't replace a
number theory package with arbitrary precision like Pari or Sage. The errors
you are seeing are due to the size of your inputs and that the data type is a
finite-precision double float, not an arbitrary precision integer. Octave
doesn't have this data type natively, although the symbolic package in
Octave-Forge defines the vpa function.

The problem with the order of the arguments is a simple fact of numerical
analysis with finite precision; the canonical example usually is computing
exp(x) from its power series expansion starting with the largest terms first
vs starting with the smallest terms first.

I'm therefore marking this bug as invalid. I hope you agree.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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