construct 函数
把本身是计算得到的头部作用于参数,例如 f'(0) 或 (x => body)(a)。
怎么写
construct(head, x, ...)
未知函数的偏导数会显示为 construct(construct(derivative(0, 1), f), a, b)。
- head
- 一个函数或导数算子。接受一个表达式。
- x
- 一个参数。接受一个表达式。
示例
示例中用到的函数
- derivative
导数算子:derivative(n) 为 n 阶导数,derivative(0, 1) 为关于第二个自变量的偏导数。