Extra Credit 3, Double Precision (10 points)


Modify the full program resulting from Homework 14 so that all real variables support at least 12 decimal digits of precision. Use the selected_real_kind function. Set the convergence criteria (eps) for your iteration loop to 1.e-10.

Grading will be as follows:

Proper use of selected_real_kind - 3 points

Proper setting and use of the convergence criterion - 2 points

Degree of thoroughness in setting the correct KIND for real variables - 5 points