# assume function

Add an assumption about the variables.

## How to write it

### assume(p)

**p**

What to assume, such as x > 0. Takes a condition, true or false.

## Examples

- $\displaystyle \operatorname{assume}(x > 0) \; \left[ x > 0 \right]$

  `assume(x > 0)`

  In the solver, `assume(x > 0)` gives `[x > 0]`.

  [Open in the solver](https://hilberon.com/?q=assume%28x%20%3E%200%29)

## Related functions

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

  Simplify an expression using an assumption.
- [with_assumptions](https://hilberon.com/library/with_assumptions)

  Evaluate a body under local assumptions.

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