# cylindrical_decomposition function

Describe where a condition holds as bounds on each variable in turn.

## How to write it

### cylindrical_decomposition(p, variables)

**p**

A condition on the variables. Takes a condition, true or false.

**variables**

The variables, in order, in brackets. Takes a list of variables.

## Examples

- $\displaystyle \operatorname{cylindrical\_decomposition}(x^{2}+y^{2} < 1, \left[ x, y \right]) = -1 < x < 1 \text{ and } -\sqrt{1-x^{2}} < y < \sqrt{1-x^{2}}$

  `cylindrical_decomposition(x^2 + y^2 < 1, [x, y])`

  In the solver, `cylindrical_decomposition(x^2 + y^2 < 1, [x, y])` gives `-1 < x < 1 and -sqrt(1 - x^2) < y < sqrt(1 - x^2)`.

  [Open in the solver](https://hilberon.com/?q=cylindrical_decomposition%28x%5E2%20%2B%20y%5E2%20%3C%201%2C%20%5Bx%2C%20y%5D%29)

## Related functions

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

  An equivalent condition with the quantifiers removed.
- [conflicting_rules](https://hilberon.com/library/conflicting_rules)

  Every set of rules that cannot hold together, each a list of the rules it needs; \[\] when all can hold.
- [equal](https://hilberon.com/library/equal)

  True when two values are equal: the function form of ==.
- [boolean_minimize](https://hilberon.com/library/boolean_minimize)

  A shortest equivalent form of a condition.
- [equivalent](https://hilberon.com/library/equivalent)

  True when two conditions are both true or both false.
- [xor](https://hilberon.com/library/xor)

  True when an odd number of conditions are true.

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