灯下 登录
计算机科学 / SICP / 2.1.4 Extended Exercise: Interval Arithmetic

Exercise 2.10 · 习题

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.

练习 2.10:专家系统程序员 Ben Bitdiddle 在 Alyssa 身后看着,评论说除以一个跨越零的区间意义不明。修改 Alyssa 的代码,使其检查这一条件,并在发生时报告错误。