計算機科学のブログ

Structure and Interpretation of Computer Programs: JavaScript Edition

Building Abstractions with Data - Introduction to Data Abstraction - Extended Exercise: Interval Arithmetic - abstraction, constructor, selectors, upper bound, lower bound, subtraction

Structure and Interpretation of Computer Programs: JavaScript Edition(Harold Abelson(著)、Gerald Jay Sussman(著)、Julie Sussman(著)、The MIT Press)のChapter 2(Building Abstractions with Data)、2.1(Introduction to Data Abstraction)、2.1.4(Extended Exercise: Interval Arithmetic)、Exercise 2.7、2.8の解答を求めてみる。