(Continuation) Another approach to computing the integra
and then write it as the sum of the integrals from 1 to π, π to 2π, and 2kπ to 2(k+1)π, for k = 1, 2, 3, . . . . To get 12-decimal places of accuracy, let k run to 112,536. Adding up the sub integrals in order of smallest to largest should give better roundoff errors. Taking 10,000 steps may require several minutes of machine time, but the error should be no more than about two digits in the tenth decimal place. The first two partial integrals should be computed outside the loop and then added into the sum at the end. Using MATLAB program quad, integrate the original integral, and then program this alternative approach.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.