3 lines
101 B
Text
3 lines
101 B
Text
function retval = fibanalytic(n)
|
|
retval = round(((5 .^ 0.5 + 1) / 2) .^ n / 5 .^ 0.5);
|
|
endfunction
|