I have two equalities and an inequality relationship between them. I would like to simplify those to a single inequality (I do not need to solve the unknowns). Here is my code:
from sympy.abc import x,y
from sympy import reduce_inequalities
eq1 = np.multiply(array_1[0], (1-delta))+delta*Q[0]*[x,y]
eq2 = np.multiply(array_1[1], (1-delta)) + delta*Q[1]*[x,y]
print(reduce_inequalities(eq1, eq2))
array_1
is a 1x4 array I defined previously, and I only need one element (I choose the elements by slicing the array). Q
is a 4x2 array I defined previously. The unknowns are x
and y
. The output I get is True
.
Is there any way to simplify this with sympy
or any other python library in such a way I could use the simplified version later on?
Edit: I forgot to mention delta
is also defined previously.