octave-maintainers
[Top][All Lists]
Advanced

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

Re: Exit codes for fzero


From: Rik
Subject: Re: Exit codes for fzero
Date: Wed, 10 Feb 2010 15:42:41 -0800

John W. Eaton wrote:
> On 10-Feb-2010, Rik wrote:
> 
> | I am looking at the function 1/(x - pi) for the range [0, 5].  The zero,
> | such as it is, is at pi.  On either side of this the function is basically
> | -/+ infinity.
> 
> Isn't the function 1/(x-pi) is undefined a x = pi, not 0?
> 
> I agree that it would be good if fzero returned a status that
> indicated that it is not converging in this case, but it would also be
> wrong for it to return X == pi as a solution.
Sure.  This function doesn't really have a zero so I'm okay with it
returning any value for X as long as it indicates that the value isn't
legitimate.

--Rik



reply via email to

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