- #1
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[itex]^{\frac{x^{2}}{2}}[/itex] and the interval is from 0 to 2
Homework Equations
|E|[itex]\leq[/itex][itex]\frac{(b-a)^{5}}{180n^{4}}[/itex][max|f[itex]^{(4)}[/itex](x)|]
The Attempt at a Solution
The fourth derivative of 2.718281828[itex]^{\frac{x^{2}}{2}}[/itex] is approximately
(x[itex]^{4}[/itex]+6x[itex]^{2}[/itex]+3)*2.718281828[itex]^{\frac{x^{2}}{2}}[/itex]
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?