Livejournal
Log in
Post
Friends
My journal
goldorak
(f (m l))
goldorak
Oct 06, 2015 20:09
(wdr (cdr shdr))
Leave a comment
Shitty Shitty Bang Bang
goldorak
Sep 13, 2015 19:47
(define (bang n)
(if (= n 0)
1
(* n (bang (- n 1)))))
;problem 1
(define (e n);n for depth to calculate e as 1 + 1/2! + 1/3! ...
(if (= n 0)
1
(+ (/ 1 (bang n)) (e (- n 1)))))
Leave a comment
Up