Cody

# Problem 2591. Does the coin touch the line?

Solution 3068257

Submitted on 5 Oct 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
d = 1; n=2; m=2; y_correct = 0.25; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

2   Fail
d = 1; n=1; m=1; y_correct = 0; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test2 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

3   Fail
d = 1; n=3; m=4; y_correct = 0.5; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test3 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

4   Fail
d = 2; n=1; m=1; y_correct = 0; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test4 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

5   Fail
d = 0.5; n=2; m=3; y_correct = 0.625; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test5 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

6   Fail
d = 2; n=1; m=4; y_correct = 0; assert(isequal(your_fcn_name(d,n,m),y_correct))

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test6 (line 5) assert(isequal(your_fcn_name(d,n,m),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!