[Top][All Lists]

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

Re: Uniform partition of an interval

From: Francesco Potorti`
Subject: Re: Uniform partition of an interval
Date: Wed, 17 May 2000 10:31:51 +0200

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

Finite precision of the machine's number representation.

When using floating point numbers, you should use linspace, as in


Francesco Potortì (researcher)         Voice:    +39 050 315 3058 (op.2111)
Area della ricerca CNR - CNUCE         Fax:      +39 050 3138091
via Vittorio Alfieri 1                 Email:    address@hidden
I-56010 Ghezzano, Pisa                 Web:

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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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