help-octave
[Top][All Lists]
Advanced

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

polyfit hangs on inf input


From: Dmitri A. Sergatskov
Subject: polyfit hangs on inf input
Date: Mon, 3 Nov 2008 12:11:47 -0600

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.

Dmitri.


reply via email to

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