MATLAB: How to simplify the solution in z1

symbolic

Hello,
Trying to solve this (s is the variable and g zeta eta z ksi h ff fk ff fe and l are parameters) I get z1 in my solution whicn is in the form of RootOf. Any idea what that is or any better wway of solving this equation?
syms s g zeta eta z ksi h ff fk ff fe l
eqn_1=(1-g)*s*(((1./(4*ksi))*((zeta-eta*((s./(2*ksi+eta*s))*(zeta-(g*(1./h)+(1-g)*(1./l))))-(1./l)).^2)-ff)+((1./(4*ksi))*((zeta-eta*((1./eta)*(zeta-(1./z)-(2*ksi+eta)*((2*ksi*(zeta-(1./z))+eta*(1-g)*s*((1./l)-(1./z)))./(2*ksi*(2*ksi+eta*s+eta)+(eta.^2)*(1-g)*s))))-(1./l)).^2)-ff))+g*s*(((1./(4*ksi))*((zeta-eta*((s./(2*ksi+eta*s))*(zeta-(g*(1./h)+(1-g)*(1./l))))-(1./h)).^2)-ff)+((ksi+eta)*(((2*ksi*(zeta-(1./z))+eta*(1-g)*s*((1./l)-(1./z)))./(2*ksi*(2*ksi+eta*s+eta)+(eta.^2)*(1-g)*s)).^2)-ff-fk))-s*fe;
[sols]= solve(eqn_1 == 0, s)
Thanks in advance for your help.
Best,
Cara

Best Answer

There is a solution at 0, and there is a set of 4 solutions which are together designated by the expression involving RootOf(). In the symbolic toolbox, RootOf(f(z),z) for some variable z, represents the set of z such that f(z) = 0 - the roots of the expression. In the case, the expression is a quartic, a polynomial of order 4.
Quartics do have exact solutions. You can use MaxDegree to get the explicit solution. I do not recommend that, however, as the explicit solution will be rather large.
It is common that two or all four roots of a quartic are complex valued, and it is common that only real-valued solutions are desired. However, in the general symbolic form, you do not know which of them is going to be real, not unless you have restrictions on the realness and range of the component terms. Typically if all of the coefficients are real-valued then the first two of the four solutions will be real if any of them are.
For practical purposes, what you usually do with a RootOf() of a quartic is use matlabFunction to turn it into something you do not need to worry about. But that can be slow, both in the conversion and the execution. More certain is to use op() to pick apart the RootOf and then coeffs() to pick out the various terms, and write them into a vector that you will later turn into parameters of a roots() call.