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

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

[Octave-bug-tracker] [bug #46349] dblquad/triplequad - periodic function


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #46349] dblquad/triplequad - periodic functions over the whole period
Date: Tue, 10 Nov 2015 07:43:30 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #8, bug #46349 (project octave):

I find quite strange that quadcc succeeds in the computation of 


quadcc(@(x) sin(2*pi*x),0,1)


I have to say that I do not understand very much the conditions at lines
1787-1789 (what is err_final?). Anyway, since in this case there is no
compatibility problem (quadcc in not in Matlab), I would explicitely introduce
a relative and an absolute tolerance, like in quadgk and change the condition
to


&& err > fabs(igral) * reltol && err > abstol


Sounds reasonable?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46349>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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