Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to integrate a oscillating function with matlab numetically?
Date: Thu, 5 Jun 2008 09:12:03 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 21
Message-ID: <g28al3$5dh$1@fred.mathworks.com>
References: <g285ni$27j$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212657123 5553 172.30.248.35 (5 Jun 2008 09:12:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Jun 2008 09:12:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:472305



"wang wang" <pligly@gmail.com> wrote in message 
<g285ni$27j$1@fred.mathworks.com>...
> Hi~everyone, I have a oscillating function, but I don't 
> know how to integrate it with matlab, the results given by 
> the matlab function quad and quad8 are not ideal. Is there 
> a special function in matlab to do this kind of 
> integration .

No. Sorry.

A completely general oscillating function may
be difficult to integrate, depending on the
size of the range and the number of periods
contained within it. Of course, the last time
someone asked this question, they were trying
to integrate over the infinite real line. I hope
that you are not also trying to use an adaptive
numerical tool to integrate over an infinite
domain.

John