Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Strilanc
on Jan 28, 2013
|
parent
|
context
|
favorite
| on:
On calculating Fibonacci numbers in C
The analytic solution to the Fibonacci sequence is nice and all, but I generally dislike methods that require you to very carefully check how much precision you need. I much prefer the matrix exponentiation by repeated squaring approach [1].
1:
http://ronzii.wordpress.com/2011/07/09/using-matrix-exponent...
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
1: http://ronzii.wordpress.com/2011/07/09/using-matrix-exponent...