The mathematical expression produces better and better approximations to the famous mathematical constant e = 2.718281828459045... as n gets large. However, the computed result of this expression may...



The mathematical expression


produces better and better approximations to the famous mathematical constant e =


2.718281828459045... as n gets large. However, the computed result of this expression may be disappointingly inaccurate if the selected real kind does not permit


many significant digits of 1/n to be retained in the sum 1+1/n. Write a program to


calculate the expression


for n taking on successive powers of two: 1, 2, 4, 8, 16, ... and successive powers of


three: 1, 3, 9, 27, 81, ... . Run this program using each of the real kinds available on


your computer.



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here