Gsong's Blog

SICP 연습문제 풀이 1.39


[CODE]
(define (square x) (* x x))
(define (tan-cf x k)
  (define (d-tan i) (- (* 2 i) 1))
  (define (n-tan i)
    (if (= i 1)
        x
        (square x)))
  (cont-frac n-tan d-tan k))
[/CODE]
크리에이티브 커먼즈 라이센스
Creative Commons License
2008/01/31 18:12 2008/01/31 18:12
top

미투데이로 한마디트위터로 한마디페이스북에 한마디

TRACKBACK ADDRESS :: http://www.gsong.pe.kr/tc/trackback/310