Question: Program 4. Write a function double zeta( double x) // here x must be > 1.0 to compute and return the value of the sum
Program 4. Write a function double zeta( double x) // here x must be > 1.0 to compute and return the value of the sum s(n) = 1 + 2, + + . . . ni Note that n is not a parameter of the function. Your while loop should stop adding once the term 1/k becomes smaller than 10-10. Then in main function use a while loop to read values of the parameter n and print the zeta value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
