Question: Programming Exercise 5.26 approximates e using the following series: In order to get better precision, use BigDecimal with 25 digits of precision in the computation.
Programming Exercise 5.26 approximates e using the following series:
In order to get better precision, use BigDecimal with 25 digits of precision in the computation. Write a program that displays the e value for i = 100, 200, . . ., and 1000.
e = 1 + 1! i! 2! 3! 4!
Step by Step Solution
3.46 Rating (178 Votes )
There are 3 Steps involved in it
Program plan Initialise the value of e i and a variable factValue with 1 Divide factValue with i and ... View full answer
Get step-by-step solutions from verified subject matter experts
