2009-04-30から1日間の記事一覧

今日の夕飯

ハッシュドポテト ベビーリーフ 鶏と茄子炒め(花山椒炒風味) 自家製ベーコンとポテトのオムレツ 今日の失敗。ハッシュドポテトの賞味期限を見ないでオムレツ作ったこと。

SICP問題2.9

感覚的にはさもありなん、ということで実験 二つの区間 X, Y を、それぞれ (x±a), (y±b) とすると、X, Y の加算の上限、下限は (x + a) + (y + b) = (x + y) + (a + b) (x - a) + (y - b) = (x + y) - (a + b)となる。よって加算の結果の幅は以下のようにな…

SICP問題2.8

減算の定義 (define (sub-interval x y) (make-interval (- (lower-bound x) (upper-bound y)) (- (upper-bound x) (lower-bound y))))

SICP問題2.7

選択子 upper-bound と lower-bound の定義 (define (upper-bound x) (max (car x) (cdr x))) (define (lower-bound x) (min (car x) (cdr x))) と思ったら a が下限、 b が上限で決まってるっぽいので (define (upper-bound x) (cdr x)) (define (lower-bou…