灯下 登录
计算机科学 / SICP / 3.5.2 Infinite Streams

Exercise 3.62 · 习题

Exercise 3.62: Use the results of Exercise 3.60

and Exercise 3.61 to define a procedure div-series that

divides two power series. Div-series should work for any two series,

provided that the denominator series begins with a nonzero constant term. (If

the denominator has a zero constant term, then div-series should signal

an error.) Show how to use div-series together with the result of

Exercise 3.59 to generate the power series for tangent.

练习 3.62:利用练习 3.60 和练习 3.61 的结果,定义过程 div-series,实现两个幂级数相除。只要分母级数以非零常数项开始,div-series 就应适用于任意两个级数。(若分母的常数项为零,则 div-series 应报错。)说明如何将 div-series 与练习 3.59 的结果配合使用,生成正切函数的幂级数。