Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
(define (^ base exponent)
|
||||
(define (*^ exponent acc)
|
||||
(if (= exponent 0)
|
||||
acc
|
||||
(*^ (- exponent 1) (* acc base))))
|
||||
(*^ exponent 1))
|
||||
|
||||
(display (^ 2 3))
|
||||
(newline)
|
||||
(display (^ (/ 1 2) 3))
|
||||
(newline)
|
||||
(display (^ 0.5 3))
|
||||
(newline)
|
||||
(display (^ 2+i 3))
|
||||
(newline)
|
||||
Loading…
Add table
Add a link
Reference in a new issue