• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code for Simpson's Rule and Boole's Rule needed  RSS feed

 
Alexandros Stefanidis
Greenhorn
Posts: 24
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Does anyone has code for
a) single application of Simpson's 1/3 Rule
b) multiple application of Simpson's 1/3 Rule
c) single application of Simpson's 3/8 rule
d) multiple application of Simpson's rule, with n=5  (integrates both 1/3 and 3/8)

e) Boole's Rule

Thanks
Alexandros
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is: No.

The slightly longer answer is: While nobody here will do you work (homework?) for you, if you show how you've gotten on so far yourself and explain what problem you are facing just now then you will very likely get some help.

So, how have you gotten on so far?
 
Piet Souris
Master Rancher
Posts: 2044
75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you visit this site: wiki you find all the formulas you need. These should be easy to translate into code, like the code you had when you got these Scanner errors.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!