# construct 函数

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

## 怎么写

### construct(head, x, ...)

未知函数的偏导数会显示为 construct(construct(derivative(0, 1), f), a, b)。

**head**

一个函数或导数算子。接受一个表达式。

**x**

一个参数。接受一个表达式。

## 示例

- $\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)
- $\displaystyle \sin'(0) = 1$

  `construct(construct(derivative(1), sin), 0)`

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

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

## 示例中用到的函数

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

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

## 相关函数

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

  将变量就地减 1，并返回它原来的值。
- [add_to](https://zh.hilberon.com/library/add_to)

  就地给变量加上一个值，并返回新值。
- [divide_by](https://zh.hilberon.com/library/divide_by)

  将变量就地除以一个值，并返回新的值。
- [with_effort](https://zh.hilberon.com/library/with_effort)

  以快速、标准、深入或穷尽的计算强度对一个主体求值。
- [evaluate](https://zh.hilberon.com/library/evaluate)

  对表达式求值，即使它本应保持不计算。
- [times_by](https://zh.hilberon.com/library/times_by)

  就地把变量乘以一个值，并返回新值。

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