Reply to comment
Exercise 2.96
Implement the procedure
pseudoremainder-terms, which is just likeremainder-termsexcept that it multiplies the dividend by the integerizing factor described above before callingdiv-terms. Modifygcd-termsto usepseudoremainder-terms, and verify thatgreatest-common-divisornow produces an answer with integer coefficients on the example in exercise 2.95.The GCD now has integer coefficients, but they are larger than those of P1. Modify
gcd-termsso that it removes common factors from the coefficients of the answer by dividing all the coefficients by their (integer) greatest common divisor.
Corresponding Section:
