I\'m trying to implement the following function, but it keeps giving me the stack level too deep (SystemStackError) error.
stack level too deep (SystemStackError)
Any ideas what the problem mi
PHI = 1.6180339887498959 TAU = 0.5004471413430931 def fibonacci(n) (PHI**n + TAU).to_i end
You don't need recursion.