I am sort of new in this whole word, and today I wanted to try and do some maths on jupyter notebook. I wanted to solve this function: enter image description here
I am using jupyter notebook, and modules like sympy, numpy and matplotlib, but I don't know how to represent the x!=-y.
For example, if instead of x!=-y, the function was x>y I will do:
x, y = sp.symbols('x y', real=True)
g = sp.Piecewise(((x*y**4 - x**4*y)/(x**3+y**3), (x>y)), (0, True))
G = sp.Lambda((x,y), g)
display(G(x,y))
But if I type x!=-y, it doesn't work (it doesn't display the whole piecewise function, it only displays the 'first part' of the piecewise funtion), and I don't know how to solve it.
Thanks!!!