ウォンツテック

そでやまのーと

2007-05-01から1日間の記事一覧

SICPの問題を解こう16

問題 1.29 Simpson's ruleを使ってintegralを求めよという問題 (define (integral f a b n) (define h 0) (define (i-term count x) (cond ((= count 0) (f a)) ((= count n) (f b)) ((even? count) (* 2 (f x))) (else (* 4 (f x))))) (define (i-next x) (…

emacs info

emacsに変えたのでこないだ設定したSICPをemacs(xemacs)で読めるようにする設定も変更。 1. /usr/share/infoにsicp.infoをコピー 2. /usr/share/info/dirファイルに以下の行を追加 SICP * SICP: (sicp). SICP BOOKS. 3. emacs上で M-x infoで上記のSICPを選ぶ