Cody

Solution 1944850

Submitted on 21 Sep 2019 at 10:39
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
n = 6; out = 8; assert(isequal(next_fibonacci(n),out));

y = 8.0000

Assertion failed.

2   Fail
n = [12 40 50]; out = [13 55 55]; assert(isequal(next_fibonacci(n),out));

y = 13.0000 55.0000 55.0000

Assertion failed.

3   Fail
n = 10.^(1:5); out = [13 144 1597 10946 121393]; assert(isequal(next_fibonacci(n),out));

y = 1.0e+05 * 0.0001 0.0014 0.0160 0.1095 1.2139

Assertion failed.

4   Fail
n = round(7.^(3:.5:7)); out = [377 987 2584 6765 17711 46368 121393 317811 832040]; assert(isequal(next_fibonacci(n),out));

y = 1.0e+05 * 0.0038 0.0099 0.0258 0.0677 0.1771 0.4637 1.2139 3.1781 8.3204

Assertion failed.