Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilliamson1 committed Jun 26, 2017
1 parent 7991be6 commit f142f5c
Show file tree
Hide file tree
Showing 5 changed files with 7,958 additions and 1,473 deletions.
15 changes: 15 additions & 0 deletions 1.13.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#lang racket
(define phi
(/ (+ 1 (sqrt 5))2))

(define (^ base exponent)
(define (*^ exponent acc)
(if (= exponent 0)
acc
(*^ (- exponent 1)(* acc base))))
(*^ exponent 1))

(define (f n)
(/ (^ phi n) (sqrt 5)))


Loading

0 comments on commit f142f5c

Please sign in to comment.