sicp
In SICP exercise 2.26 using DrScheme, why does cons return a list, instead of a pair of lists?
In SICP exercise 2.26, this Scheme code is given: (define x (list 1 2 3)) (define y (list 4 5 6)) Then this cons call is given:[详细]
2023-01-01 20:19 分类:问答using lambda instead of let in scheme
In SICP 1.2.1 there is a function that m开发者_运维知识库akes a rational number, as follow: (define (make-rat n d)[详细]
2022-12-31 19:39 分类:问答Create a polynomial object from a number using change-class
I have written a polynomial class along the lines described in SICP 2.5.3 (except using defclass). I would like to be able to seamlessly add and multiply polynomials and regular numbers but I can\'t m[详细]
2022-12-24 04:41 分类:问答No idea how to solve SICP exercise 1.11
Exercise 1.11: A function f is defined by the rule that f(n) = n if n < 3 and f(n) = f(n - 1) + 2f(n- 2) + 3f(n - 3) if n > 3. Write a procedure that computes f by means of a recursive process[详细]
2022-12-22 03:48 分类:问答Is there an equivalent to Lisp's "runtime" primitive in Scheme?
According to SICP section 1.2.6, exercise 1.22: Most Lisp implementations include a primitive called runtime that returns an integer that specifies the amount of time the system has been running (me[详细]
2022-12-18 20:12 分类:问答Pros and cons of MIT Scheme and DrScheme for studying SICP [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2022-12-11 11:58 分类:问答SICP exercise 1.16, where is my bug, because it looks right to me
I\'ve just started working through this book for fun; I wish it were homework, but I could never afford to attend MIT, and there are tons of people smarter than me anyway. :p[详细]
2022-12-09 15:09 分类:问答
加载中,请稍侯......