Created
May 5, 2019 07:53
-
-
Save arthurkushman/57854cb1ab884db51583517e606163da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package fibonacci | |
func fib(n uint) uint64 { | |
return uint64(math.Round(math.Pow(1.618, float64(n)) / 2.236)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment