Harmonic numbers. Write a program Harmonic that contains three static methods harmonic(), harmoincSmall(), and harmonicLarge() for computing the harmonic numbers. The harmonicSmall() method should just compute the sum (as in PROGRAM 1.3.5), the harmonicLarge() method should use the approximation Hn = loge(n) + γ + 1/(2n) − 1/(12n2) + 1/(120/n4) (the number γ = 0.577215664901532… is known as Euler’s constant), and the harmonic() method should call harmonicSmall() for n < 100 and harmonicLarge() otherwise.
Program 1.3.5 Harmonic number
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.