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 Solvers419
Suggested Problems
-
2409 Solvers
-
Maximum running product for a string of numbers
2160 Solvers
-
How to find the position of an element in a vector without using the find function
2728 Solvers
-
Implement simple rotation cypher
1065 Solvers
-
Pernicious Anniversary Problem
821 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!