Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Numerical Integration Lab: Simpson's Rule? #29

Open
rebekahanne opened this issue Jul 25, 2018 · 3 comments
Open

Error in Numerical Integration Lab: Simpson's Rule? #29

rebekahanne opened this issue Jul 25, 2018 · 3 comments

Comments

@rebekahanne
Copy link

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)).

@rickecon
Copy link
Contributor

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

@navneeraj
Copy link

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).

@rickecon
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants