From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Guaranteed precision at numerical integration?
Date: Wed, 2 Nov 2011 23:37:26 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <j8sk7m$pum$>
References: <j8s49o$4hf$> <j8shit$ib4$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1320277046 26582 (2 Nov 2011 23:37:26 GMT)
NNTP-Posting-Date: Wed, 2 Nov 2011 23:37:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1434515
Xref: comp.soft-sys.matlab:748060

"John D'Errico" <> wrote in message <j8shit$ib4$>...
> "Triantafyllos" wrote in message <j8s49o$4hf$>...
> > Hello,
> > 
> > in order to prove a mathematical statement, I need check the value of an integral which is evaluated numerically in Matlab.
> > 
> > Now, which guarantee do I have that the value is correct up to say the 5th significant digit? Since, if it is only correct some 99.9% of the time, I apparantly can not use this value to rigorously prove the mathematical statement..
> > 
> > Infos/Links on this topic are highly appreciated! Thank you very much in advance,
> > Best regards.
> You CANNOT guarantee any fixed tolerance on a numerical
> integration. Period.
> One can always provide a function that will cause any adaptive
> integration tool such as quad to fail any tolerance you choose.
> Period.
> John

I thought about if there was an algorithm which only stopped after checking via the standard error terms (using derivatives) that the desired precision has been reached? However, I understand that evaluating these error terms usually involves evaluating derivatives in certain ranges, something which may in most cases cause at least similar problems as the original problem.

And according to your statement John, there is no such algorithm for general functions, which sounds reasonable.