From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem with a variable not changing value in Matlab
Date: Sun, 5 Jun 2011 10:27:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <isfllo$fbq$>
References: <ise0mm$e2d$> <ise3o9$kvd$> <ise4ks$mso$> <isef06$h0g$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307269624 15738 (5 Jun 2011 10:27:04 GMT)
NNTP-Posting-Date: Sun, 5 Jun 2011 10:27:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2902978
Xref: comp.soft-sys.matlab:730270

"Roger Stafford" wrote in message <isef06$h0g$>...
> "nisse" wrote in message <ise4ks$mso$>...
> > Thanks so much!!
> > Since you know the math, do you know why the truncation can be found with I - log(2)? 
> - - - - - - - - -
>   I recognize your 'trapets" as computing Simpson's integration approximation, but I have no idea why you subtract log(2) from it.  Perhaps you could tell us why you do.
> Roger Stafford

Actually, I'm calculating the truncation with the subtraction of log(2), or anyway that's the tip I got from some of my classmates. I don't know why really, but it will probably work out anyway. Thanks for the help!