Programming Exercise 5.26 approximates e using the following series: In order to get better precision, use BigDecimal

Question:

Programming Exercise 5.26 approximates e using the following series:image

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: