I'm using wolframclient in Python and at certain point of my computation I have an output like the following
(Plus[-9, Times[2, Power[Global`y, 4]]], Plus[Times[3, Global`x], Times[-2, Power[Global`y, 3]]])
Now I need to convert this output into sympy format, something like
[-9 + 2*y**4, 3*x - 2*y**3]
Is there a way to do that?
Thanks, Luca
The mathematica parser doesn't seem to like the tuple, so if you can get the two parts separate and replace the "Global`" with a null string, it can work: