Compact Simpson's 3/8 Rule(??)
|
10-04-2019, 06:20 PM
Post: #19
|
|||
|
|||
RE: Compact Simpson's 3/8 Rule(??)
(09-25-2019 06:47 PM)Csaba Tizedes Wrote: I don't think this work. We assumed n divisible by 3, and put a weight of 1 (3 3 2) ... (3 3 2) 3 3 1 However, above generate weight of 1 (3 3 2) ... (3 3 2) 0 0 1 You could also pull the (2*, 3*, 3*) from inside the loop, and scale it all in 1 step. Code: h = (b - a) / n |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)