Convert each of the following expressions into Scheme:
- 4 + 6 + 7
- 5 * (5 + 9)
- (4 + 9) * (8 - 7)
- ((a * a) + (b * b)) / 2
Convert the following function definitions into Scheme:
- square(x) = x * x
- avg(x, y) = (x + y) / 2
- celc->fahr(deg) = 9/5 * deg + 32
Evaluate each of the following expressions. Show every step. For example:
(sqrt (+ (* 3 3) (* 4 4)))
= (sqrt (+ 9 (* 4 4)))
= (sqrt (+ 9 16))
= (sqrt 25)
= 5
- (- (* 3 5) 20)
- (/ 44 (+ 8 3))
- (sqrt (square 6))
- (avg 6 10)
- (celc->fahr 100)