内容 2.1 Introduction to Data Abstraction · 89
练习 自检推理
Exercise 2.14: Demonstrate that Lem is right.
Investigate the behavior of the system on a variety of arithmetic
expressions. Make some intervals A and B, and use them in computing the
expressions A
/
A and A
/
B. You will get the most insight by
using intervals whose width is a small percentage of the center value. Examine
the results of the computation in center-percent form (see Exercise 2.12).
练习 2.14:证明 Lem 是对的。对各种算术表达式研究系统的行为。构造一些区间 A 和 B,用它们计算表达式 A/A 和 A/B。使用宽度为中心值的小百分比的区间,你能获得最深刻的认识。以中心-百分比形式(见练习 2.12)检验计算结果。
我的笔记 自动保存