上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: sicp每日一题[2.12] Exercise 2.12 Defineaconstructor make-center-percent that takes a center and a percentage tolerance and produces the desired interval. You must also d 阅读全文
posted @ 2024-09-16 23:20 再思即可 阅读(27) 评论(0) 推荐(0)
摘要: sicp每日一题[2.10] Exercise 2.10 Ben Bitdiddle, an expert systems programmer, looks over Alyssa’s shoulder and comments that it is not clear what it means to divide by a 阅读全文
posted @ 2024-09-16 23:16 再思即可 阅读(15) 评论(0) 推荐(0)
摘要: sicp每日一题[2.11] Exercise 2.11 In passing, Ben also cryptically comments: “By testing the signs of the endpoints of the intervals, it is possible to break mul-interval 阅读全文
posted @ 2024-09-15 13:04 再思即可 阅读(17) 评论(0) 推荐(0)
摘要: sicp每日一题[2.9] Exercise 2.9 The width of an interval is half of the difference between its upper and lower bounds. The width is a measure of the uncertainty of the n 阅读全文
posted @ 2024-09-14 10:54 再思即可 阅读(37) 评论(0) 推荐(0)
摘要: sicp每日一题[2.8] Exercise 2.8 > Using reasoning analogous to Alyssa's, describe how the difference of two intervals may be computed. Define a corresponding subtraction 阅读全文
posted @ 2024-09-13 13:09 再思即可 阅读(24) 评论(0) 推荐(0)
摘要: sicp每日一题[2.7] 2.7 Alyssa’s program is incomplete because she has not specified the implementation of the interval abstraction. Here is a definition of the interval 阅读全文
posted @ 2024-09-13 13:06 再思即可 阅读(14) 评论(0) 推荐(0)
摘要: sicp每日一题[2.6] Exercise2.6 In case representing pairs as procedures wasn't mind-boggling enough, consider that, in a language that can manipulate procedures, we can 阅读全文
posted @ 2024-09-12 11:04 再思即可 阅读(23) 评论(0) 推荐(0)
摘要: sicp每日一题[2.5] Exercise 2.5 Show that we can represent pairs of nonnegative integers using only numbers and arithmetic operations if we represent the pair a and b as 阅读全文
posted @ 2024-09-11 10:37 再思即可 阅读(17) 评论(0) 推荐(0)
摘要: sicp每日一题[2.4] Exercise 2.4 Here is an alternative procedural representation of pairs. Forthisrepresentation, verify that (car (cons x y)) yields x for any objects x 阅读全文
posted @ 2024-09-10 10:42 再思即可 阅读(21) 评论(0) 推荐(0)
摘要: sicp每日一题[2.3] Exercise 2.3 Implement a representation for rectangles in a plane. (Hint: You may want to make use of Exercise 2.2.) In terms of your constructors and 阅读全文
posted @ 2024-09-09 12:20 再思即可 阅读(258) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页