摘要: 我使用的scheme解释器主要是petite chez scheme。解题过程中参考了:http://sicp.readthedocs.org/en/latest/index.html1.1和1.2基本没问题,除非你没看书......1.3(define ( x 0) (sqrt-iter 1.0 x)) ((= x 0) 0) (else -1)))1.8 求立方的procedure cbrt,如下,主要修改了improve和good-enough(define (cbrt x) (cond ((= x 0) 0) (else (cbr... 阅读全文
posted @ 2014-02-07 19:55 valleylord 阅读(1242) 评论(0) 推荐(0) 编辑