Question: JAVA CODE Problem 1. (25%) Write a program and use it to compute the Harmonic sum , Et , using single precision (i.e., float), for


JAVA CODE
Problem 1. (25%) Write a program and use it to compute the Harmonic sum , Et , using single precision (i.e., float), for N = 10, with n= 1, 2, 3, ..., 8, (or higher). Repeat the computations, but use the double precision. Plot the partial Problem 2. (25%) For given 2(0), say, 20) = 1.0, write a program to compute the sequence x(1), (2), (3), x(N), up to a suitably large value of N, e.g., N = 20, or higher where necessary, using the recurrence relation 21(+1) = f(z)), k=0,1,2,3,..., where f(2) 2r +5 Plot the results on the graph in terms of N values. 3r2 Problem 1. (25%) Write a program and use it to compute the Harmonic sum , Et , using single precision (i.e., float), for N = 10, with n= 1, 2, 3, ..., 8, (or higher). Repeat the computations, but use the double precision. Plot the partial Problem 2. (25%) For given 2(0), say, 20) = 1.0, write a program to compute the sequence x(1), (2), (3), x(N), up to a suitably large value of N, e.g., N = 20, or higher where necessary, using the recurrence relation 21(+1) = f(z)), k=0,1,2,3,..., where f(2) 2r +5 Plot the results on the graph in terms of N values. 3r2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
