Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to optimise numerical integration?
Date: Sat, 18 Sep 2010 22:06:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <i73d4b$sge$1@fred.mathworks.com>
References: <i735gj$782$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1284847563 29198 172.30.248.35 (18 Sep 2010 22:06:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 18 Sep 2010 22:06:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:671158

  I should point out that with points as closely-spaced as you have here (0:0.001:5) you ought to obtain a very decent accuracy using cumtrapz rather than quad, and that should make it even faster.

Roger Stafford