# with_effort function

Evaluate a body at quick, standard, deep or exhaustive effort.

## How to write it

### with_effort(effort, body)

**effort**

How hard to search: quick, standard, deep or exhaustive. Takes one of the words it lists.

**body**

The expression to evaluate. Takes an expression.

## Examples

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

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

  In the solver, `with_effort(deep, integrate(x^2, x))` gives `x^3/3`.

  [Open in the solver](https://hilberon.com/?q=with_effort%28deep%2C%20integrate%28x%5E2%2C%20x%29%29)

## Functions its examples use

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

  Antiderivative of an expression, or its definite integral over a range.

## Related functions

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

  Add a value to a variable in place and return the new value.
- [times_by](https://hilberon.com/library/times_by)

  Multiply a variable by a value in place and return the new value.
- [construct](https://hilberon.com/library/construct)

  Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
- [subtract_from](https://hilberon.com/library/subtract_from)

  Subtract a value from a variable in place and return the new value.
- [decrement](https://hilberon.com/library/decrement)

  Subtract 1 from a variable in place and return its old value.
- [subs_repeated](https://hilberon.com/library/subs_repeated)

  Apply substitution rules again and again until nothing changes.

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