Chapter 1: Problem 17
The exponentiation algorithms in this section are based on performing exponentiation by means of repeated multiplication. In a similar way, one can perform integer multiplication by means of repeated addition. The following multiplication procedure (in which it is assumed that our language can only add, not multiply) is analogous to the expt procedure: (define (* a b) (if \((=b \quad 0)\) 0 \((+a(* a(-b \quad 1)))))\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.