If this count is one, then we are dealing with a polynomic equation,
which is solved for the polynomial's main variable, e.g. z.
This works always, if the polynomial's degree is 2 or of it is biquadratic,
otherwise only, if the coefficients are constant. In the next step
the solution is solved for the desired variable x.
As an example: Jasymca has to solve
for
.
It first solves
for
and then
for
.
Examples with free variables:
>> syms x,b
>> solve(x^2-1,x)
ans = [ 1 -1 ]
>> solve(x^2-2*x*b+b^2,x)
ans = b
An example with functionvariable (
):
>> syms x
>> float( solve(sin(x)^2+2*cos(x)-0.5,x) )
ans = [ 1.438i -1.438i -1.7975 1.7975 ]