# release_hold 函数

对已保持的表达式求值。

## 怎么写

### release_hold(expr)

**expr**

任意表达式：一个数、一个公式、一个列表或一个矩阵。接受一个表达式。

## 示例

- $\displaystyle \operatorname{release\_hold}(1+1) = 2$

  `release_hold(hold(1 + 1))`

  在求解器中，`release_hold(hold(1 + 1))` 的结果是 `2`。

  [在求解器中打开](https://zh.hilberon.com/?q=release_hold%28hold%281%20%2B%201%29%29)

## 相关函数

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

  给名称赋值；也可写作 name := value。
- [pre_increment](https://zh.hilberon.com/library/pre_increment)

  把变量原地加 1 并返回新值。
- [set_delayed](https://zh.hilberon.com/library/set_delayed)

  定义函数；也可写作 f(x) := body。
- [pre_decrement](https://zh.hilberon.com/library/pre_decrement)

  将变量就地减 1，并返回新值。
- [slot](https://zh.hilberon.com/library/slot)

  无名函数的第 n 个参数：在 function(body) 中，slot(1) 是第一个。
- [piecewise](https://zh.hilberon.com/library/piecewise)

  按条件写出的分段取值，写作 value if condition，并可带一个 otherwise 分支。

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