Last active
November 7, 2023 11:25
-
-
Save jonrandy/4017899a13631de21026b651005979bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fib = n => { | |
const r5 = fib.r5 || (fib.r5=5**.5) | |
return Math.floor((((1+r5)/2)**n - ((1-r5)/2)**n)/r5) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment