图片摘录 https://www.comp.nus.edu.sg/~cs1101s/sicp/
Functions as Arguments
首先观察以下三个function
Sum of the integers from a through b以上三个function其实可以统整成以下模式:
可以发现其实只有两个部分naming, term,而这就是鼎鼎大名的数学表示式:** sigma notation **
Sigma notation的强大在于,可以处理函数自己的加总,而非加总特定部分。
Comment Template:
应用
sum_cube来做习题搂~~