[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 |
address@hidden:
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
linspace(1.8,1.9,3)
--
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: http://fly.cnuce.cnr.it/
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------
Re: Uniform partition of an interval,
Francesco Potorti` <=