function retval = fibanalytic(n) retval = round(((5 .^ 0.5 + 1) / 2) .^ n / 5 .^ 0.5); endfunction