dpb613
- 5
- 0
Homework Statement
I am trying to write a program to calculate an integral using Simpson's Rule. My program also needs to calculate the error. In the formula for error I need The max value of the fourth derivative. The function is 2.718281828^{\frac{x^{2}}{2}} and the interval is from 0 to 2
Homework Equations
|E|\leq\frac{(b-a)^{5}}{180n^{4}}[max|f^{(4)}(x)|]
The Attempt at a Solution
The fourth derivative of 2.718281828^{\frac{x^{2}}{2}} is approximately
(x^{4}+6x^{2}+3)*2.718281828^{\frac{x^{2}}{2}}
When evaluated at 2 this gives 317.729... Since there is a lot of math involved I would appreciate if someone can review this especially since my program is returning strange results. Also, is there anything I can learn by evaluating the fifth derivative?