4 lines
116 B
Text
4 lines
116 B
Text
fib_ana = (n) ->
|
|
sqrt = Math.sqrt
|
|
phi = ((1 + sqrt(5))/2)
|
|
return Math.round((Math.pow(phi, n)/sqrt(5)))
|