|
55 | 55 | "max": lambda x, y: sympy.Piecewise((y, x < y), (x, True)),
|
56 | 56 | "min": lambda x, y: sympy.Piecewise((x, x < y), (y, True)),
|
57 | 57 | "greater": lambda x, y: sympy.Piecewise((1.0, x > y), (0.0, True)),
|
| 58 | + "less": lambda x, y: sympy.Piecewise((1.0, x < y), (0.0, True)), |
| 59 | + "greater_equal": lambda x, y: sympy.Piecewise((1.0, x >= y), (0.0, True)), |
| 60 | + "less_equal": lambda x, y: sympy.Piecewise((1.0, x <= y), (0.0, True)), |
58 | 61 | "cond": lambda x, y: sympy.Piecewise((y, x > 0), (0.0, True)),
|
59 | 62 | "logical_or": lambda x, y: sympy.Piecewise((1.0, (x > 0) | (y > 0)), (0.0, True)),
|
60 | 63 | "logical_and": lambda x, y: sympy.Piecewise((1.0, (x > 0) & (y > 0)), (0.0, True)),
|
|
0 commit comments