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
assume(x > 0)In the solver,
Open in the solverassume(x > 0)gives[x > 0].
Related functions
- refine
Simplify an expression using an assumption.
- with_assumptions
Evaluate a body under local assumptions.