this one is in haskell: fibonacci n = round((phi ** (x + 1) - (1 - phi) ** (x + 1)) / (sqrt 5)) where phi = (1 + sqrt 5) / 2 x = (fromInteger n)::Float