Problem 566. Sum of first n terms of a harmonic progression
Solution Stats
Problem Comments
-
14 Comments
I didn't know "roundn". Thanks.
My solution is correct BUT the test cases result in error due to the roundn() function.
Please solve the situation with the test cases. Same issues as the other people commenting. Problems with roundn.
Please update the tests to deal with the "roundn" issue.
I thought roundn may have been replaced in the latest version of MATLAB, but it seems to still be present in 2017a. Any idea why it's not working in the Cody interpreter?
There is a bug in the tests.
Please fix the issue of roundn
the matlab2017b does have the " roundn" function ,
all the functions are combined with the "round" function .
The tests have bugs in them. Please correct them as soon as possible.
Fix the issue of roundn. The test cases are not working.
The roundn function is not recognized. The test cases are not working.
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.
@srivardhini Kindly look into the issue
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 Solvers414
Suggested Problems
-
Is my wife right? Now with even more wrong husband
1321 Solvers
-
274 Solvers
-
The sum of the numbers in the vector
592 Solvers
-
378 Solvers
-
4790 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!