Question: C++ Program, The number e is a mathematical constant that is the base of the natural logarithm (i.e., the only number whose natural logarithm is
C++ Program,

The number e is a mathematical constant that is the base of the natural logarithm (i.e., the only number whose natural logarithm is equal to one). Its value to nine decimal positions is e = 2.71828 1827 and is the limit of (1 + 1)n as n approaches infinity. Interestingly, the value of e can also be approximated using the following expression: 1+ 1 (n -1) (n-1)+ n+ n where n is a positive integer. a) Write a C++ program that uses this expression to approximate the value of e. b) Test your program for n-3,5,10, and 50. Give an approximation of e to fifteen decimal positions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
