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

[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:1.9.2.13) 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:

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

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




reply via email to

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