2014年9月15日

Exercise 1.11---1.12 Pascal's Triangle

摘要: 1.11 F'ibonates函数的变种,略过。1.12题目:The following pattern of numbers is called Pascal's triangle. 1 1 1 1 2 1 1 3 3 11 4 6 4 1....... 阅读全文

posted @ 2014-09-15 16:48 一生只想往前飞 阅读(143) 评论(0) 推荐(0) 编辑

Exercise 1.10 Ackerman's function

摘要: 题目:The following procedure computes a mathematical function called Ackermann's function.(define (A x y) (cond ((= y 0) 0) ((= x 0) (... 阅读全文

posted @ 2014-09-15 16:28 一生只想往前飞 阅读(234) 评论(0) 推荐(0) 编辑

Exercise 1.9

摘要: 题目: Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argum... 阅读全文

posted @ 2014-09-15 15:59 一生只想往前飞 阅读(126) 评论(0) 推荐(0) 编辑

Exercise 1.8 牛顿法求立方根

摘要: 题目: Newton's method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by ... 阅读全文

posted @ 2014-09-15 15:50 一生只想往前飞 阅读(470) 评论(0) 推荐(0) 编辑

导航