Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem with a variable not changing value in Matlab
Date: Sat, 4 Jun 2011 20:30:20 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <ise4ks$mso$1@newscl01ah.mathworks.com>
References: <ise0mm$e2d$1@newscl01ah.mathworks.com> <ise3o9$kvd$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 1307219420 23448 172.30.248.35 (4 Jun 2011 20:30:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Jun 2011 20:30:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2902978
Xref: news.mathworks.com comp.soft-sys.matlab:730238


> - - - - - - - - -
>   This is Simpson's integration approximation.  It is exact for polynomials of degree up to three, so your -x^2 function should give exact results no matter what n is.  Trying using -x^4.
> 
> Roger Stafford


Thanks so much!!

Since you know the math, do you know why the truncation can be found with I - log(2)?