Question: Using loop in C++ Modify the provided program to approximate the value of the transcendental number e, (which is also irrational) using the infinite series
Using loop in C++

Modify the provided program to approximate the value of the transcendental number e, (which is also irrational) using the infinite series defined below 1. k! where k! = k * (k-1) * (k-2) * * 3 * 2 * 1 6! = 6 * 5! = 6 * 5 * 4 * 3 * 2 * 1 = 720 5! = 5+4+3+2+1=120 01 = 1 (by definition.) For example: +-+-+-+-+-= 1 + 1 + + 1 /6 + 1 /24 +1 / 1 20 = 2.7 1 6667 k=0 Approximate the value of e to 18 terms in the infinite series above. You will need to evaluate the series to 18 terms as shown below: 18 = 1 + 1 +-+-+ k! -= 2.718282 18! + 2! 3! k=0 After 18 terms the approximation should be: 2.718282
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
