help-octave
[Top][All Lists]
Advanced

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

Uniform partition of an interval


From: John W. Eaton
Subject: Uniform partition of an interval
Date: Wed, 17 May 2000 03:30:59 -0500 (CDT)

On 17-May-2000, address@hidden <address@hidden> wrote:

| Hello! 
| 
| What is the MAIN reason that 1.8:0.05:1.9 produces [1.8000 1.8500]
| and not [1.8000 1.8500 1.9000]? 
| I am using 2.0.14 version of Octave. 
| Thank you for your answer. 
| Best regards,
| Emil Zagar

I'd guess that the MAIN reason is that there is a bug in the way
Octave is trying (very hard) to compute the correct number of elements
for ranges.  If you're in a debugging mood, the code to look at is in
the Range::nelem_internal and related functions in liboctave/Range.cc.

jwe

-- 
www.che.wisc.edu/octave | Thanking you in advance.  This sounds as if the
www.che.wisc.edu/~jwe   | writer meant, "It will not be worth my while to
                        | write to you again."        -- Strunk and White



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

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



reply via email to

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