octave-maintainers
[Top][All Lists]
Advanced

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

Exit codes for fzero


From: John W. Eaton
Subject: Exit codes for fzero
Date: Wed, 10 Feb 2010 18:30:54 -0500

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.

jwe


reply via email to

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