Problem 566. Sum of first n terms of a harmonic progression
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 CommentsShow comments
Problem Recent Solvers369
Switch matrix to a column vector
There are 10 types of people in the world
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!