[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature f
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge |
Date: |
Thu, 5 May 2022 15:26:29 -0400 (EDT) |
Follow-up Comment #14, bug #62412 (project octave):
> it doesn't check if nargin>1 first, but i noticed quadgk warns whether err
is requested or not, so figured this could do similarly.
Actually, that was behavior I wanted to change in quadgk.
See this note from the NEWS file from version 7.1
- Many functions in Octave can be called in a command form---no
parentheses for invocation and no return argument assignment---or in a
functional form---parentheses and '=' for assignment of return values.
**Command Form Example**
`mkdir new_directory`
**Function Form Example**
`status = mkdir ("new_directory")`
Octave now handles errors that occur in a consistent manner. If
called in command form and there is a failure, an error is thrown
and a message printed. If called in functional form, no error or
message is printed and the failure is communicated to the programmer
via the output status variable.
I would like to have the same consistency here. If the user hasn't asked for
an output that would allow them to determine that the algorithm failed then
they need to be given a warning. Otherwise, the warning should be suppressed
and the programmer will handle interpreting the results and what should be
done (issue warning? issue error? something else?).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62412>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf, (continued)
- [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf, John W. Eaton, 2022/05/04
- [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf, Rik, 2022/05/04
- [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf, Nicholas Jankowski, 2022/05/04
- [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf, Rik, 2022/05/04
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Rik, 2022/05/04
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/04
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Michael Leitner, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Michael Leitner, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge,
Rik <=
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Michael Leitner, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/05
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/06
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Markus Mützel, 2022/05/07
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Rik, 2022/05/07
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/09
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Rik, 2022/05/10
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Rik, 2022/05/10
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Nicholas Jankowski, 2022/05/10
- [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge, Rik, 2022/05/11