[Top][All Lists]

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

polyfit() and Inf

From: stefan
Subject: polyfit() and Inf
Date: Sat, 29 Mar 2003 08:00:00 -0600

Hello Octave'ers,

I was experimenting with the polyfit() function.  It works correct with
"normal" functions (y = f(x)).  But it seems to compute ages (I never
waited until it finished) when there is a 'Inf' in the dataset.

        x = linspace(0,1,100);
        y = x * 1 + 4;
        y(99) = Inf;
        [p,r] = polyfit(x,y,1);

This piece of code works fine without the 'y(99) = Inf;' line and stucks
with it.

I implemented the polyfit() function on my own.  I get infinite results
but it does not stuck!  Is this a real problem/bug with polyfit()?  I
could send you my implemetation, if interested...

Thaks in advance,

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]