SICP Exercise 2.11 width-of-interval - mul rewritten
Exercise 2.11. In passing, Ben also cryptically comments: ``By testing the signs of the endpoints of the intervals, it is possible to break mul-interval into nine cases, only one of which requires more than two multiplications.'' Rewrite this procedure using Ben's suggestion.
SOLUTION
The code and tests are here.
SOLUTION
The code and tests are here.
Comments
Post a Comment