Cody

# Problem 45203. Check if a number belongs in the fibonacci squence

Solution 2291783

Submitted on 18 May 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
assert(isequal(isFibonacci(2),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test1 (line 1) assert(isequal(isFibonacci(2),true))

2   Fail
assert(isequal(isFibonacci(3),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test2 (line 1) assert(isequal(isFibonacci(3),true))

3   Fail
assert(isequal(isFibonacci(5),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test3 (line 1) assert(isequal(isFibonacci(5),true))

4   Fail
assert(isequal(isFibonacci(89),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test4 (line 1) assert(isequal(isFibonacci(89),true))

5   Fail
assert(isequal(isFibonacci(233),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test5 (line 1) assert(isequal(isFibonacci(233),true))

6   Fail
assert(isequal(isFibonacci(6765),true))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test6 (line 1) assert(isequal(isFibonacci(6765),true))

7   Fail
assert(isequal(isFibonacci(18),false))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test7 (line 1) assert(isequal(isFibonacci(18),false))

8   Fail
assert(isequal(isFibonacci(100),false))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test8 (line 1) assert(isequal(isFibonacci(100),false))

9   Fail
assert(isequal(isFibonacci(230),false))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test9 (line 1) assert(isequal(isFibonacci(230),false))

10   Fail
assert(isequal(isFibonacci(514227),false))

Undefined function 'fibonacci' for input arguments of type 'double'. Error in isFibonacci (line 2) fibonacci(1:i) Error in Test10 (line 1) assert(isequal(isFibonacci(514227),false))