Created
January 20, 2017 17:38
-
-
Save hikilaka/58d1eaf6a1ca7b8b48c9ac870006a863 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
(define golden-ratio | |
(/ (+ 1 (sqrt 5)) 2)) | |
(define (fibonacci n) | |
(/ (- (expt golden-ratio n) | |
(expt (- (/ 1 golden-ratio)) n)) | |
(sqrt 5))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment