Prepare these exercises for oral presentation in tutorial.
(> 10 9.7)
+
(define double (lambda (x) (* 2 x)))
double
(define c 4)
c
(double c)
c
(double (double (+ c 5)))
(define times-2 double)
(times-2 c)
(define d c)
(= c d)
(if (= (* c 6) (times-2 d))
(< c d)
(+ c d))
(cond ((>= c 2) d)
((= c (- d 5)) (+ c d))
(else (abs (- c d))))
(define try (lambda (x) (x 3)))
(try double)
(try (lambda (z) (* z z)))
Check the 6.001 discussion forum for tutorial-ex-01
|
Look here
for information about the forum.
| |
What is the difference between the following two ways of defining cube?
(define cube (lambda (x) (* x x x))) (define (cube x) (* x x x))
Check the 6.001 discussion forum for tutorial-ex-02
|
Look here
for information about the forum.
| |
Do exercise 1.4 of the text.
Check the 6.001 discussion forum for tutorial-ex-03
|
Look here
for information about the forum.
| |
Do exercise 1.6 of the text.
Check the 6.001 discussion forum for tutorial-ex-04
|
Look here
for information about the forum.
| |