I have this limit: $$ \lim_{x \to 0} \frac{x(e^x+1)-2(e^x-1)}{x^3} $$ By using L'Hospital rule and Maclaurin expansion I both found that limit equals to $1/6$.
I want to simulate this to my student by Excel but I failed. This is my computation in Excel.
I did not know why Excel doesn't work in this situation?
Please help me. Thanks alot.


If I do with Mathematica the same thing that you did with Excel, then I get a similar answer. That is due to numerical errors that are a consequence of a catastrophic cancellation, as you were told in the comments. However, I can force Mathematica to work with greater numerical precision and if I tell it to compute those numbers with ten significant figures, then I get a nice answer:
$$\begin{array}{c|c}n&f(10^{-n})\\\hline0&0.2817181715\\1&0.1752556563\\2&0.1675025056\\3&0.1667500250\\4&0.1666750003\\5&0.1666675000\\6&0.1666667500\\7&0.1666666750\\8&0.1666666675\\9&0.1666666668\end{array}$$I don't know whether or not you can do the same thing with Excel, but this could be a good lesson for your students.