Chapter 18: Problem 32
We can get an approximate value for \(e\) from the following infinite series:$$\begin{aligned} &\begin{array}{l}\text { Series } \\\\\text { Approximation } \quad e=2+\frac{1}{2 !}+\frac{1}{3 !}+\frac{1}{4 !}+\ldots \quad 158 \\\\\text { for }e\end{array}\\\&\end{aligned}$$.where \(4 !\) (read " 4 factorial") is \(4(3)(2)(1)=24\). Write a program to compute \(e\) using the first five terms of the series.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.