微分列表(麦克劳林展开式)

list of differentiations ( Maclaurin expansion)

这里,我有一个diff函数,可以用来区分。

例如 diff (sin x) ("x")= cos x

(这里,(sin x)是函数,("x")是我要微分的变量)

如何使用iterate生成函数[f(x),f'(x),f'(x),f''(x)....]的微分列表

结合使用flipiterate:

(flip diff) "x" f = diff f "x"

所以

iterate ((flip diff) "x") f = [ f, f', f'', ...]