Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define golden-ratio
- (/ (+ 1 (sqrt 5)) 2))
- (define (fibonacci n)
- (/ (- (expt golden-ratio n)
- (expt (- (/ 1 golden-ratio)) n))
- (sqrt 5)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement