octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

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