Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Numerical Integration
Date: Fri, 19 Jun 2009 12:07:00 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <h1fv14$79u$1@fred.mathworks.com>
References: <h1emhh$mok$1@fred.mathworks.com> <h1eq3t$6rb$1@fred.mathworks.com> <32ef8539-b42c-447d-8436-f796643fd085@o20g2000vbh.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245413220 7486 172.30.248.37 (19 Jun 2009 12:07:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Jun 2009 12:07:00 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1832633
Xref: news.mathworks.com comp.soft-sys.matlab:548899


vedenev <vedenev.maxim@gmail.com> wrote in message <32ef8539-b42c-447d-8436-f796643fd085@o20g2000vbh.googlegroups.com>...
> See, example:
> 
> syms a b z t
> Fun=((1./gamma(a)).*exp(-z.*t).*(t.^(a-1)).*((1+t).^(b-a-1)))
> Psi=int(Fun,t,0,5000)
> 
> -----------------------------------------
> Maxim Vedenev, MATLAB Custom Programming
> vedenev@ngs.ru
> http://simulations.narod.ru/

But as I know, using anonymous functions followed by quad command, is the quickest way to do integrations. I have a very long expression in term of s, and I tried the way you suggested, but the program takes a considerable amount of time to be executed. So, I need a suggestion in how to use the quad command, or an equivalent fast integration, please.