Post Reply 
The most compact algorithm for Simpson's rule??
12-16-2015, 01:25 PM (This post was last modified: 12-16-2015 01:27 PM by Dieter.)
Post: #16
RE: The most compact algorithm for Simpson's rule??
(12-16-2015 12:57 AM)Namir Wrote:  Here is a version that iterates one less time to calculate the integral:

Now remove the initial a = a+h and move the one within the loop right behind the Do, and you get what I suggested in my post #12, saving one line of code. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: The most compact algorithm for Simpson's rule?? - Dieter - 12-16-2015 01:25 PM



User(s) browsing this thread: 1 Guest(s)