1
<problem name = "Fibonacci numbers">
2
<desc>Write a function <code>fib(n)</code> which returns the nth fibonacci
7
# Write your function here.
14
return int((numpy.matrix([[0, 1], [1, 1]], dtype='object')**(n-1))[1,1])
17
<case name="Low n" function="fib">
19
<function desc="Match">int</function>
21
<case name="First number" function="fib">
23
<function desc="Match">int</function>
25
<case name="Zeroth number" function="fib">
26
<file name="patch.py">
32
<function desc="Match">int</function>
34
<case name="High number" function="fib">
36
<function desc="Match">int</function>
38
<case name="Very high number" function="fib">
40
<function desc="Match">int</function>