Re: [sympy] substitution with a condition

2020-03-23 Thread Oscar Benjamin
Hi Philippe, There isn't any way to do this properly right now. We can't use inequalities like `x < X` but we can say that X = x+delta where delta is positive: ``` In [3]: x, X = symbols('x X', real=True) In [4]: e = Min(x, X) In [5]: e Out[5]: Min(X, x) In [6]: delta = Symbol('delta',

[sympy] substitution with a condition

2020-03-23 Thread Philippe Piot
Dear All, I cannot figure out how to impose a condition. I have a function that is defined as a piecewise function. When it returns its results with several Min(x,y). I would like to substitute Min(x,X) with "x" since