Description Usage Arguments Details Value Examples
Estimate the nth Fibonacci number using Binet's Formula
1 |
n |
which Fibonacci number to estimate |
Binets' Formula estimates the nth Fibonacci number using the Golden Ratio
F_n = (φ^n - (-φ)^{-n})/√{5}
where φ is the Golden Ratio
φ = (1 + √{5})/2 ~ 1.618034
the nth Fibonacci number
1 2 | fibonacci_binet(1:6)
# 1 1 2 3 5 8
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.