polyfit enters infinite loop
Thorsten Meyer
thorsten.meyier at gmx.de
Sat Dec 6 15:23:04 CST 2008
Afief Halumi wrote:
> Bug report for Octave 3.0.1 configured for i486-pc-linux-gnu
>
> Description:
> -----------
>
> trying to polyfit log(x) when x starts at 0( log(0)=-inf according to
> octave ) keeps running indefinitely(or at least for over 15 minutes)
>
> Repeat-By:
> ---------
>
> * x=0:0.1:10; y=log(x); polyfit(x,y,3);
>
I can confirm this bug with 3.0.1.
In octave freshly built from the mercurial sources the command returns:
octave:4> x=0:0.1:10; y=log(x); polyfit(x,y,3)
ans =
NaN NaN NaN -Inf
So apparently, it has already been fixed.
can somebody check in 3.0.3?
Thorsten
More information about the Bug-octave
mailing list