For example I have been given some equations and the solution is asked in terms of y/x = only numbers and z.
w1=-x+w2+w3,
w2=(z^-1)*x+2*w3,
w3=(z^-1)*w2+(z^-1)*y,
y=2*w1
I would like to see the solution to be done like this: (y/x = some equation only in terms of z and numbers)
y/x=(-2+6*(z^-1)+2*(z^-2))/(1-8*(z^-1))
Is there a way to do this? Could be code or some function in certain programming languages like matlab.
Thanks in advance.