User:Richardhsu

Exercise 1.3  (define (sqrlarge x y z) (if (> x y)                              (if (> y z)                                  (sumsq x y)                                  (sumsq x z)) (if (> x z)                                 (sumsq x y)                                  (sumsq z y)) )) (define (sumsq a b) (+ (sq a) (sq b))) (define (sq a) (* a a))  (define (sqrlarge x y z) (cond ((or (and (> x y) (> y z)) (and (> y x) (> x z)))                           (sumsq x y)) ((or (and (> x z) (> z y)) (and (> z x) (> x y)))                           (sumsq x z)) (else (sumsq y z)))) (define (sumsq a b) (+ (sq a) (sq b))) (define (sq a) (* a a))