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$>
References: <ji1bhj$cvt$> <ji1q4g$on4$> <ji1qsr$qmr$> <ji1sfg$22k$> <ji2p84$p2u$> <ji3d3o$79e$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1329943333 1983 (22 Feb 2012 20:42:13 GMT)
NNTP-Posting-Date: Wed, 22 Feb 2012 20:42:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3339165
Xref: comp.soft-sys.matlab:758603

"Roger Stafford" wrote in message <ji3d3o$79e$>...
> "steingre" wrote in message <ji2p84$p2u$>...
> > 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!