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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here