0

Here,I have a diff function which can be used to differentiate.

for example diff (sin x) ("x")= cos x

(here,(sin x) is the function, ("x") is the variable i want to differentiate)

How to use iterate to generate a list of differentiations of function [f(x),f'(x),f'(x),f''(x)....]

4

1 に答える 1

2

flipと組み合わせて使用iterate​​:

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

それで

iterate ((flip diff) "x") f = [ f, f', f'', ...]
于 2015-01-04T20:18:38.253 に答える