a by
b:
(define multiply
(lambda (a b) ;; b must be a non-negative integer
(define loop
(lambda (b acc) ;; returns ab + acc
(if (= b 0)
acc
(loop (- b 1) (+ a acc)))))
(loop b 0)))
Exactly how many additions does the procedure do? Express your answer
as a function of a and/or b.
mod-expt on page 93.
together-copies-of on two
procedures such as + and stack.
together-copies-of on two
procedures such as + and stack.