Compact Simpson's 3/8 Rule(??)
|
12-13-2015, 05:05 PM
Post: #5
|
|||
|
|||
RE: Compact Simpson's 3/8 Rule(??)
(12-13-2015 03:38 PM)Dieter Wrote:(12-13-2015 02:26 PM)Namir Wrote: The variable I cycles between 1, 2, and 3. The coefficient C is calculated using a special (and simple) quadratic equation to yield 3, 3, and 2 for I=1, 2, and 3. I like your FOR loop and the use of the SIGN function!! Now we have a compact implementation that performs one function summation per iteration and with minimum calculations. Your pseudo-code version looks simple and very nice. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)