2008-06-16から1日間の記事一覧

問題2.12〜

問題2.12 (define (make-interval a b) (cons a b)) (define (lower-bound r) (car r)) (define (upper-bound r) (cdr r)) (define (center r) (/ (+ (lower-bound r) (upper-bound r)) 2)) (define (width r) (/ (- (upper-bound r) (lower-bound r)) 2)) (…