Question: c++ Exercise #3 The Value of e: Write a program that reads a decimal number x, then uses the following series to calculate the value
Exercise \#3 The Value of e: Write a program that reads a decimal number x, then uses the following series to calculate the value of exponential function ex to 0.00001 accuracy: ex=1+x+2!x2+3!x3+4!x4+ Print the exponential value to 9 digits, also print the number of iterations needed to produce the required accuracy. Sample inputs / outputs: Enter the value of x:3.1 The exponential value is 22.197950517 The number of iterations is 16
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
