合集-sicp
摘要:
Exercise 1.42 Let f and g be two one-argument functions. The composition f after g is defined to be the function x->f(g(x)). Define a procedure compos
阅读全文
![sicp每日一题[1.42]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240903102708668-1329247635.png)
摘要:
Exercise 1.43 If f is a numerical function and n is a positive integer, then we can form the nth repeated application of f, which is defined to be the
阅读全文
![sicp每日一题[1.43]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240903105337914-1565015850.png)
摘要:
Exercise 1.44 The idea of smoothing a function is an important concept in signal processing. If f is a function and dx is some small number, then the
阅读全文
![sicp每日一题[1.44]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240904104846532-1775536801.png)
摘要:
Exercise 1.45 We saw in Section 1.3.3 that attempting to compute square roots by naively finding a fixed point of y->x/y does not converge, and that t
阅读全文
![sicp每日一题[1.45]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240905140311536-1344769002.png)
摘要:
Exercise 1.46 Several of the numerical methods described in this chapter are instances of an extremely general computational strategy known as iterati
阅读全文
![sicp每日一题[1.46]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240906114941461-330853672.png)
摘要:
Exercise 2.1 Exercise 2.1: Define a better version of make-rat that handles both positive and negative arguments. make-rat should normalize the sign s
阅读全文
![sicp每日一题[2.1]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240907134329828-910596814.png)
摘要:
Exercise 2.2 Consider the problem of representing line segments in a plane. Each segment is represented as a pair of points: a starting point and an e
阅读全文
![sicp每日一题[2.2]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240908090130353-343814789.png)
摘要:
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
阅读全文
![sicp每日一题[2.3]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240909121950632-466514831.png)
摘要:
Exercise 2.4 Here is an alternative procedural representation of pairs. Forthisrepresentation, verify that (car (cons x y)) yields x for any objects x
阅读全文
![sicp每日一题[2.4]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240910104154029-1908743336.png)
摘要:
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
阅读全文
![sicp每日一题[2.5]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240911103727556-1644907639.png)
摘要:
Exercise2.6 In case representing pairs as procedures wasn't mind-boggling enough, consider that, in a language that can manipulate procedures, we can
阅读全文
![sicp每日一题[2.6]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240912110411932-2021080443.png)
摘要:
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
阅读全文
![sicp每日一题[2.7]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240913130625392-1007717701.png)
摘要:
Exercise 2.8 > Using reasoning analogous to Alyssa's, describe how the difference of two intervals may be computed. Define a corresponding subtraction
阅读全文
![sicp每日一题[2.8]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240913130938894-1518510126.png)
摘要:
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
阅读全文
![sicp每日一题[2.9]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240914105427739-878360455.png)
摘要:
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
阅读全文
![sicp每日一题[2.11]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240915130339488-189498850.png)
摘要:
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
阅读全文
![sicp每日一题[2.10]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240916231604665-742788649.png)
摘要:
Exercise 2.12 Defineaconstructor make-center-percent that takes a center and a percentage tolerance and produces the desired interval. You must also d
阅读全文
![sicp每日一题[2.12]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240916232039516-1964336672.png)
摘要:
Exercise 2.13 Show that under the assumption of small percentage tolerances there is a simple formula for the approximate percentage tolerance of the
阅读全文
![sicp每日一题[2.13-2.16]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240917132015203-2120725620.png)
摘要:
Exercise 2.17 Define a procedure last-pair that returns the list that contains only the last element of a given (nonempty) list: (last-pair (list 23 7
阅读全文
![sicp每日一题[2.17]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240918140211845-31386677.png)
摘要:
Exercise 2.18 Define a procedure reverse that takes a list as argument and returns a list of the same elements in reverse order: (reverse (list 1 4 9
阅读全文
![sicp每日一题[2.18]](https://img2024.cnblogs.com/blog/3223467/202409/3223467-20240919102621791-1952515045.png)