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: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62412] quadcc does not warn when quadrature fails to converge
Date: Thu, 5 May 2022 13:21:25 -0400 (EDT)

Update of bug #62412 (project octave):

                  Status:               Confirmed => Patch Submitted        

    _______________________________________________________

Follow-up Comment #13:

Re: adding a quadcc warning, I think just the following should suffice just
before the final return statements:


  if (err > std::max (abstol, fabs (igral) * reltol)
    warning ("quadcc: Error tolerance not met. Estimated error: %e\n", err);


the attached patch does that, but since i'm not set up to build and test
didn't want to push it into quadcc.  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. 

(file #53176)

    _______________________________________________________

Additional Item Attachment:

File name: quadccwarning_bug62412.diff    Size:0 KB
   
<https://file.savannah.gnu.org/file/quadccwarning_bug62412.diff?file_id=53176>



    _______________________________________________________

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]