Cody

Solution 1742137

Submitted on 4 Mar 2019 by Martin C.
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   Pass
x = 12; y_correct = 28/38; assert(isequal(your_fcn_name(x),y_correct))

n = 0 d = 0 d = 1 n = 2 n = 5 d = 5 n = 10 d = 11 n = 17 d = 19 d = 28 d = 38 n = 28 y = 0.7368

2   Pass
x = 7; y_correct = 17/11; assert(isequal(your_fcn_name(x),y_correct))

n = 0 d = 0 d = 1 n = 2 n = 5 d = 5 n = 10 d = 11 n = 17 y = 1.5455

3   Pass
x = 20; y_correct = 77/113; assert(isequal(your_fcn_name(x),y_correct))

n = 0 d = 0 d = 1 n = 2 n = 5 d = 5 n = 10 d = 11 n = 17 d = 19 d = 28 d = 38 n = 28 d = 50 n = 41 d = 64 d = 79 d = 95 n = 58 d = 113 n = 77 y = 0.6814