Using SymPy, is it possible to limit the possible values of a symbol/variable to a certain range? I now I can set some properties while defining symbols, like positive
positive
Now you can use solveset
solveset
In [3]: solveset(x**2 - 1, x, Interval(0.5, 3)) Out[3]: {1}