User:Kellen/SCIP

SCIP exercise answers: http://www.kendyck.com/2005/04/index-of-solutions-to-sicp-exercises.php

1.1: > 10 > 12 > 8 > 3 > 6 > a (with value 3) > b (with value 4) > 19 > ??? (undefined?) dunno. > 4 > 16 > 6 > 16

1.2: I read this one as:

5 + 4 + (2 - (3 - (6 + (4/5)))) ---     3 (6 - 2)(2 - 7)

ans: (/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)) )

1.3: (define (square x) (* x x))

(define (sum-of-squares x y) (+ (square x) (square y)))

(define (exercise-1-3 x y z)   (cond ( (and (> x z) (> y z)) (sum-of-squares x y) ) ( (and (> x y) (> z y)) (sum-of-squares x z) ) ( else (sum-of-squares y z)) ) )