Exercise 3.59. In section 2.5.3 we saw how to implement a polynomial arithmetic system representing polynomials as lists of terms. In a similar way, we can work with power series , such as represented as infinite streams. We will represent the series a 0 + a 1 x + a 2 x 2 + a 3 x 3 + ··· as the stream whose elements are the coefficients a 0 , a 1 , a 2 , a 3 , ... . a. The integral of the series a 0 + a 1 x + a 2 x 2 + a 3 x 3 + ··· is the series where c is any constant. Define a procedure integrate-series that takes as input a stream a 0 , a 1 , a 2 , ... representing a power series and returns the stream a 0 , (1/2) a 1 , (1/3) a 2 , ... of coefficients of the non-constant terms o...
Comments
Post a Comment