help-octave
[Top][All Lists]
Advanced

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

Re: polyfit hangs on inf input


From: Søren Hauberg
Subject: Re: polyfit hangs on inf input
Date: Mon, 03 Nov 2008 19:32:55 +0100

man, 03 11 2008 kl. 12:11 -0600, skrev Dmitri A. Sergatskov:
> The following code seems to hang octave 3.0.2 (on Fedora 9 x86_64):
> 
> xx=linspace(-1,1,11);
> yy=2*linspace(-1,1,11);
> xx(6)=Inf;
> polyfit(xx',yy',1)
> 
> The problem seems to be with underlying x\y code.
> I do not know WWMD in this case, but hanging does not
> seem to be appropriate. Either bailing out with an error,
> or ignoring with a warning seem to be better options.

With 3.1.51+ I get

octave:4> polyfit(xx',yy',1)
ans =

   NaN   NaN

Søren



reply via email to

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