Post Reply 
The most compact algorithm for Simpson's rule??
12-16-2015, 01:54 PM
Post: #17
RE: The most compact algorithm for Simpson's rule??
(12-16-2015 01:25 PM)Dieter Wrote:  
(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

See updated last post.

Namir
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?? - Namir - 12-16-2015 01:54 PM



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