Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <ji1bhj$cvt$1@newscl01ah.mathworks.com> <ji1q4g$on4$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1329884891 27355 172.30.248.38 (22 Feb 2012 04:28:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Feb 2012 04:28:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:758458

"Roger Stafford" wrote in message <ji1q4g$on4$1@newscl01ah.mathworks.com>...
>   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