floating point errors- arange

Yeah, I'm sure. I just tried reinstalling Numeric without linking to my
external linalg libraries (I had reason to suspect this due to a recent
discussion on gentoo-science), but the problem persists.

Fernando, is frange a homegrown function? Where can I find it?

···

On Sunday 01 May 2005 9:04 pm, John Hunter wrote:

On 5/1/05, Darren Dale <dd55@...163...> wrote:
> When I do a=arange(-1,0.0001,.01), a[-1] is equal to something like
> 2e-17. I

Are you sure? I'm getting something different

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...163...

Darren Dale wrote:

···

On Sunday 01 May 2005 9:04 pm, John Hunter wrote:

On 5/1/05, Darren Dale <dd55@...163...> wrote:

When I do a=arange(-1,0.0001,.01), a[-1] is equal to something like
2e-17. I

Are you sure? I'm getting something different

Yeah, I'm sure. I just tried reinstalling Numeric without linking to my external linalg libraries (I had reason to suspect this due to a recent discussion on gentoo-science), but the problem persists.

Fernando, is frange a homegrown function? Where can I find it?

pylab.frange

It's something I wrote long ago, and it also ships in IPython.numutils. But John was kind enough to fold some of my numutils pet favorites into pylab a while ago, if nothing else so I'd shut up and actually start using matplotlib :slight_smile:

Best,

f