Solution: (+ 4 6 7) or (+ 4 (+ 6 7))
Solution: (* 5 (+ 5 9))
Solution: (* (+ 4 9) (- 8 7))
Solution: (/ (+ (* a a) (* b b)) 2)
Solution: (define (square x) (* x x))
Solution: (define (avg x y) (/ (+ x y) 2))
Solution: (define (celc->fahr deg) (+ (* (/ 9 5) deg) 32))
(sqrt (+ (* 3 3) (* 4 4))) = (sqrt (+ 9 (* 4 4))) = (sqrt (+ 9 16)) = (sqrt 25) = 5
Solution:
(- (* 3 5) 20) = (- 15 20) = -5
Solution:
(/ 44 (+ 8 3)) = (/ 44 11) = 4
Solution:
(sqrt (square 6)) = (sqrt (* 6 6)) = (sqrt 36) = 6
Solution:
(avg 6 10) = (/ (+ 6 10) 2) = (/ 16 2) = 8
(celc->fahr 100) = (+ (* (/ 9 5) 100) 32)) = (+ (* 9/5 100) 32) = (+ 180 32) = 212
Kathi Fisler | This page was generated on Fri Aug 27 17:01:35 CDT 1999. |