From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Integration
Date: Wed, 22 Feb 2012 04:28:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 6
Message-ID: <ji1qsr$qmr$>
References: <ji1bhj$cvt$> <ji1q4g$on4$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1329884891 27355 (22 Feb 2012 04:28:11 GMT)
NNTP-Posting-Date: Wed, 22 Feb 2012 04:28:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:758458

"Roger Stafford" wrote in message <ji1q4g$on4$>...
>   You haven't gone far enough out in the range of y to approximate infinity.  You have stopped where y is equal to 10 which makes exppdf equal to 1/8*exp(-10/8) = .0358 .  This is not nearly far enough.
- - - - - - - -
  I made a mistake in calculation, the furthest value is 8*exp(-80) which is very small and should be far enough out.  Whatever error you are getting is probably due to starting at .001.  Besides correcting this, try taking smaller steps to see the effect.  How large is your error at present?

Roger Stafford