# with_effort 函数

以快速、标准、深入或穷尽的计算强度对一个主体求值。

## 怎么写

### with_effort(effort, body)

**effort**

搜索的强度：快速、标准、深入或穷尽。接受它列出的其中一个词。

**body**

要求值的表达式。接受一个表达式。

## 示例

- $\displaystyle \int x^{2} \, dx = \frac{x^{3}}{3} + C$

  `with_effort(deep, integrate(x^2, x))`

  在求解器中，`with_effort(deep, integrate(x^2, x))` 的结果是 `x^3/3`。

  [在求解器中打开](https://zh.hilberon.com/?q=with_effort%28deep%2C%20integrate%28x%5E2%2C%20x%29%29)

## 示例中用到的函数

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

  表达式的原函数，或它在某个区间上的定积分。

## 相关函数

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

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

  就地把变量乘以一个值，并返回新值。
- [construct](https://zh.hilberon.com/library/construct)

  把本身是计算得到的头部作用于参数，例如 f'(0) 或 (x => body)(a)。
- [subtract_from](https://zh.hilberon.com/library/subtract_from)

  就地从一个变量中减去一个值，并返回新值。
- [decrement](https://zh.hilberon.com/library/decrement)

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

  反复应用代入规则，直到不再变化。

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