Home Assignments Lecture Blog Resources Project Discussion Group

91.301 Organization of Programming Languages
Prof. F. Martin

Out: Mar 4, 2011
Due: Mar 9, 2011

Problem Set 5: Symbolic Differentiation


In this problem set, you'll get more practice with accumulate, and work with the Scheme symbolic differentiator.

Reading for PS5

Before doing this problem set, read the following material:


1. Exercise 2.36 on pp. 120, accumulating with lists of lists.

2. Exercise 2.53 on pp. 144, testing quote, pair?, and memq.

3. Exercise 2.54 on pp. 145, building your own version of equal?.

4. Exercise 2.55 on pp. 145, pushing the limits of quote.

Small Implementation Projects

For the next two problems, retrieve the symbolic differentiation code.

5. Exercise 2.57 on pp. 151, extending the differentiator to handle arbitrary sums and products.

6. Exercise 2.58 on pp. 151, converting the differentiator to infix. Do subproblem (a) only.