huangzworks / SICP-answers

我的 SICP 解题集

Home Page:http://sicp.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1.10作者出题并非此意?

zkx06111 opened this issue · comments

在您的题解中给出的做法是写出代码,对于较小的n进行尝试然后找规律。
但我认为,作者出这道题的目的是让读者学会通过观察程序来了解它的执行结果(正如1.2导语所说)?
因此我觉得可以改成:
$f(n)=2n$直接观察得到。
$g(n)=f(g(n-1))=2g(n-1)=2^n$
$h(n)=g(h(n-1))=2^{h(n-1)}=2^{2^{2^{2}}}$ n个2