Question: c++ please Create a program to compute the Riemann zeta function for real values of x>1 1111 The zeta function is defined as: (x)- =1++++

c++ please c++ please Create a program to compute the Riemann zeta function for

Create a program to compute the Riemann zeta function for real values of x>1 1111 The zeta function is defined as: (x)- =1++++ 2 3 4 -1 n Example: (3)--= 1+-+-+-+. . . .= 1 +-+-+-+-..= 1.202 2 34 8 27 64 1. Prompt the user for the value of the parameter x (Accept only x > 1 values). If a value not greater than 1 is entered prompt the user to enter another value until it is greater than 1: Input an x value greater than 1: 2. Create the loop that will compute the zeta function for the input value. The loop will continue adding terms to the sum for the zeta function as long as the terms remain greater than 107 (1e-7). 3. Create a constant variable and call it maxterm. Check if the current term of the sequence is greater than maxterm. If it is then add that term to the sequence, otherwise stop const double MATERM 1e-7; = 4. Test the program with these values for x: 2, 3, 4.1, 1.52, 1.005. 5. The output should look like the following: (# represents the input and the zeta value) The zeta function with parameter x = # is # Expected output for each of the values required zeta: 1.64 zeta: 1.07 1.005 zeta: 15.98 zeta: 1.20 1.52: zeta: 2.52 Create a program to compute the Riemann zeta function for real values of x>1 1111 The zeta function is defined as: (x)- =1++++ 2 3 4 -1 n Example: (3)--= 1+-+-+-+. . . .= 1 +-+-+-+-..= 1.202 2 34 8 27 64 1. Prompt the user for the value of the parameter x (Accept only x > 1 values). If a value not greater than 1 is entered prompt the user to enter another value until it is greater than 1: Input an x value greater than 1: 2. Create the loop that will compute the zeta function for the input value. The loop will continue adding terms to the sum for the zeta function as long as the terms remain greater than 107 (1e-7). 3. Create a constant variable and call it maxterm. Check if the current term of the sequence is greater than maxterm. If it is then add that term to the sequence, otherwise stop const double MATERM 1e-7; = 4. Test the program with these values for x: 2, 3, 4.1, 1.52, 1.005. 5. The output should look like the following: (# represents the input and the zeta value) The zeta function with parameter x = # is # Expected output for each of the values required zeta: 1.64 zeta: 1.07 1.005 zeta: 15.98 zeta: 1.20 1.52: zeta: 2.52

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!