Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (anonymous):

Use pseudocode to specify a recursive algorithm to compute the nth value of the harmonic series, for some integer n

OpenStudy (rsmith6559):

I'm not certain that I understand the math, but this Python does what I expect, (that we go from 1...n): >>> def harmonic( n ): ... if( n < 1 ): ... return 0.0 ... else: ... return( harmonic( n - 1.0 ) + ( 1.0 / n ) ) ... >>> n = 3.0 >>> harmonic( n ) 1.8333333333333333 >>> n = 4.0 >>> harmonic( n ) 2.083333333333333 >>> n = 5.0 >>> harmonic( n ) 2.283333333333333 You can pseudo it up.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
14 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
17 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!