Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add direct Fibonacci numbers algorithm (Binet's formula + rounding) #66

Merged
merged 1 commit into from
Jun 30, 2014

Conversation

eush77
Copy link
Contributor

@eush77 eush77 commented Jun 29, 2014

This method uses Binet's formula for Fibonacci numbers with the rounding trick as described here: https://en.wikipedia.org/wiki/Fibonacci_number#Computation_by_rounding

Suggested in #26.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 0d9506d on eush77:fibonacci-direct into eeae9fa on felipernb:master.

felipernb added a commit that referenced this pull request Jun 30, 2014
Add direct Fibonacci numbers algorithm (Binet's formula + rounding)
@felipernb felipernb merged commit 7b80b47 into felipernb:master Jun 30, 2014
@eush77 eush77 deleted the fibonacci-direct branch June 30, 2014 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants