# 作为函数的导数（Derivative as a function，derivative）

导数算子：derivative(n) 为 n 阶导数，derivative(0, 1) 为关于第二个自变量的偏导数。

## 怎么写

### derivative(n, ...)

函数 f 的导数 f' 写作 construct(derivative(1), f)。

**n**

阶数，或关于每个自变量的阶数。接受一个整数。

## 示例

- $\displaystyle \sin' = \cos(\#1) \, \&$

  `construct(derivative(1), sin)`

  在求解器中，`construct(derivative(1), sin)` 的结果是 `function(cos(slot(1)))`。

  [在求解器中打开](https://zh.hilberon.com/?q=construct%28derivative%281%29%2C%20sin%29)

## 示例中用到的函数

- [construct](https://zh.hilberon.com/library/construct)

  把本身是计算得到的头部作用于参数，例如 f'(0) 或 (x => body)(a)。

## 相关函数

- [diff](https://zh.hilberon.com/library/diff)

  表达式关于一个或多个变量的导数。
- [curl](https://zh.hilberon.com/library/curl)

  三个变量的向量场的旋度。
- [div](https://zh.hilberon.com/library/div)

  向量场的散度。
- [certified_value](https://zh.hilberon.com/library/certified_value)

  定积分或闭式常数的区间包围，半径至多为 10^-digits。
- [grad](https://zh.hilberon.com/library/grad)

  表达式的梯度：其偏导数组成的列表。
- [total_diff](https://zh.hilberon.com/library/total_diff)

  表达式关于某个变量的全导数。

---
Source: https://zh.hilberon.com/library/derivative
