SICP Exercise 2.10 width-of-interval - zero check
Exercise 2.10. Ben Bitdiddle, an expert systems programmer, looks over Alyssa's shoulder and comments that it is not clear what it means to divide by an interval that spans zero. Modify Alyssa's code to check for this condition and to signal an error if it occurs.
SOLUTION
The code and tests are here.
SOLUTION
The code and tests are here.
Comments
Post a Comment