# SICP Solutions

### Section - 2.5 - Systems with Generic Operations

#### Exercise 2.94

Following are the required changes:

Output:

Thus the gcd of $x^4 - x^3 - 2x^2 + 2x$ and $x^3 - x$ is $-x^2 + x$. Manually I got the same gcd but with opposite sign i.e. $x^2 - x$.

Note that I also found a bug in my old div-terms procedure where I should be using cadr but was using cdr instead.