Hey everyone!

So I'm given this equation:

$\displaystyle x e^(^-^0^.^2^(^x^2^)$

They want me to find the least number of sub-intervals required to get an accuracy of $\displaystyle 10 ^-^8$. In the first part of the problem, they ask me to get the max of the fourth derivative from an interval of 0 to 1, right? I take the derivatives until the fifth derivative, and I got my max to be: 0.975525220034 approximately, and yeah. Then, I'm looking back at my notes, and I see that my teacher gave us this formula to use to calculate the error of the Simpson's Rule:

$\displaystyle f^4(z) (b - a)^5 / (2880N^4)$

The problem specifically says to use 2 to find the smallest number of N sub intervals to get the Simpson Error to a $\displaystyle 10 ^-^8$ accuracy.

So what I did was that I set up my equation like this:

$\displaystyle 10 ^-^8 = f^4(2) (1-0)^5 / (2880N^4)$

and then I tried to solve for N, but I got this:

0.0019835453.

I can't possibly have that amount of sub intervals, so obviously I'm doing something wrong. I double-checked my differentiation with several people, and they said my differentiation was correct, so I just...I'm getting slightly frustrated. I don't understand what I'm doing wrong, and why I can't get a good value for N.

If I can get any advice, guidance, or any help, I would greatly appreciate it!