Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Integration
Date: Wed, 22 Feb 2012 20:42:13 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <ji3jv5$1tv$1@newscl01ah.mathworks.com>
References: <ji1bhj$cvt$1@newscl01ah.mathworks.com> <ji1q4g$on4$1@newscl01ah.mathworks.com> <ji1qsr$qmr$1@newscl01ah.mathworks.com> <ji1sfg$22k$1@newscl01ah.mathworks.com> <ji2p84$p2u$1@newscl01ah.mathworks.com> <ji3d3o$79e$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1329943333 1983 172.30.248.35 (22 Feb 2012 20:42:13 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Feb 2012 20:42:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3339165
Xref: news.mathworks.com comp.soft-sys.matlab:758603

"Roger Stafford" wrote in message <ji3d3o$79e$1@newscl01ah.mathworks.com>...
> "steingre" wrote in message <ji2p84$p2u$1@newscl01ah.mathworks.com>...
> > I started at 0 and go until 10 with steps 0.01 and it works! ......
> - - - - - - - -
>   The reason it worked is that you went until y equals 100, not 10.  If you had only gone to 10 that is only at the new mean value point, which is way short.  A 100 is safely past there.  When you change to lambda = 1/100, that sets the mean value to 100, so you would then need to go far past there.
> 
>   You would get a better feel for what you are doing if you made plots of z against y ahead of time.  You would see why some settings are okay and others not so good.
> 
>  plot(y,z)
> 
>   You need to take into consideration the nature of your integrand as you alter the mean parameter.  As you have it set up, 'lambda' is the reciprocal of the mean of this distribution.  The smaller 'lambda', the broader the distribution and therefore the further out you need to integrate for approximating an infinite limit.
> 
> Roger Stafford

Thank you for the clarification!