BootCamp2018 icon indicating copy to clipboard operation
BootCamp2018 copied to clipboard

Error in Numerical Integration Lab: Simpson's Rule?

Open rebekahanne opened this issue 7 years ago • 3 comments

I'm wondering if the scaling factor in equation 14.9 in the Numerical integration lab (the section on Simpson's rule) is incorrect? I think equation 14.9 should be multiplied by (b-a)/(3(2N+1)) rather than (b-a)/(3(N+1)).

rebekahanne avatar Jul 25 '18 03:07 rebekahanne

@rebekahanne . I will look into this issue this morning.

rickecon avatar Jul 25 '18 12:07 rickecon

I too think so. As in the previous methods, the idea seems to be to do a weighted sum and divide the whole sum by the sum of weights to get the weighted average. The sum of weights is 6N+2 = 1+ 4N + 2N +1, for the 4 corresponding terms inside the sum. Hence the sum needs to be divided by 3(2N+1).

navneeraj avatar Jul 25 '18 21:07 navneeraj

@rebekahanne @navneeraj @zeshunzon. Thanks for your work on this. In looking at the correct specification again with @navneeraj and @rebekahanne, the denominator needs to be 6N in the specification in the lab. I am updating it now.

rickecon avatar Jul 26 '18 14:07 rickecon