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),....
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.
Undefined function 'roundn' for input arguments of type 'double'.
Error in Test2 (line 2)
y_correct = roundn(3.5746,-4);
Test suite is using a function not supported for double precision numbers! The poster should re-think!
I am geting an error on the function roundn that is on Test 2 and Test 3, my version on matlab gives the y_correct but here doesnt accept
I'm getting an undefined function error for 'roundn' in your test suite. What gives?
Why am I getting the following message:
Undefined function 'roundn' for input arguments of type 'double'.
Why does it not pass the test Suite?
there is a problem here please update the tests to be matched with the results..
Undefined function 'roundn' for input arguments of type 'double'. Error in Test2 (line 2) y_correct = roundn(3.5746,-4);
the problem is in the (line 2) ??!!
the second and third tests in the test suite are using an undefined function roundn. This is causing those test cases to crash, please fix this problem. You can either remove the use of roundn, or provide the test case with the functions code.
its showing an error that i can't understand , i did this problem correctly. But still showing an error,"Undefined function 'roundn' for input arguments of type double"
Please solve the situation with the test cases. Same issues as the other people commenting. Problems with roundn.
Undefined function 'roundn' for input arguments of type 'double'. Error in Test2 (line 2) y_correct = roundn(3.5746,-4); ???
My function is correct but the system using the function roundnand have a error:
Undefined function 'roundn' for input arguments of type 'double'. Error in TestPoint2 (line 2) y_correct = roundn(3.5746,-4);
???????????????????????
My function is correct but the system using the function roundn and have a error:
Undefined function 'roundn' for input arguments of type 'double'. Error in TestPoint2 (line 2) y_correct = roundn(3.5746,-4); ???????????????????????
I am getting the same problem. The test case function roundn() is undefined.
Is there trick to push
function y = roundn(x,n)
y = round( x, -n );
end
into Cody?
I don't think the second test case is correct.
1935 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
215 Solvers
Matrix which contains the values of an other matrix A at the given locations.
196 Solvers
247 Solvers
1347 Solvers