Problem 566. Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....
Solution Stats
Problem Comments
-
14 Comments
Show
11 older comments
mario alonzo
on 16 Jul 2018
This test has a problem with roundn function. I have also tried to use elseif and insert the exact values of s, but it doesn't work.
Srishti Saha
on 8 Aug 2018
@srivardhini Kindly look into the issue
goc3
on 10 Aug 2018
The test suite has been updated and the problem should function properly now. Various recent solutions were tested and did work. Feel free to resubmit prior solutions.
Solution Comments
Show commentsProblem Recent Solvers451
Suggested Problems
-
556 Solvers
-
Back to basics 12 - Input Arguments
607 Solvers
-
715 Solvers
-
Flag largest magnitude swings as they occur
681 Solvers
-
Change the sign of even index entries of the reversed vector
581 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!