Suppose that I have this problem
roots =
Reduce[
Sin[z + Sin[z + Sin[z]]] == Cos[z + Cos[z + Cos[z]]] &&
-3 < Re[z] < 3 && -3 < Im[z] < 3, z] // Quiet;
ListPlot[{Re[z], Im[z]} /. {ToRules[roots]},
PlotLabel ->
Style[TraditionalForm[Sin[z + Sin[z + Sin[z]]] == Cos[z + Cos[z + Cos[z]]]], 14],
PlotStyle -> Red, AspectRatio -> 1]
Thus as in https://www.wolfram.com/mathematica/newin7/content/TranscendentalRoots/PlotTheRootsOfANestedTranscendentalEquation.html
I get a beautiful solution. Suppose now that this equation depends on quantity a
in a range of (1, 2).
roots[a_] :=
Reduce[
Sin[z + Sin[z + Sin[z]]] == a + a Cos[z + a Cos[z + Cos[z]]] &&
-3 < Re[z] < 3 && -3 < Im[z] < 3, z] // Quiet; `
But I don't want the real and imaginary part for each vale of a specified a
, rather I would like to have a plot that is a continuous function of a
, and the maximum of the real part of the z
.
Is there any way to do it?
I have tried this,
Plot[Max[Re[z]] /. {ToRules[roots[a_]]}, {a, 1, 2},
PlotLabel -> PlotStyle -> Red, AspectRatio -> 1]
but it has been running for a day and I still have not got any result.
a
value in the relevant range. If you assume the result to be smooth, you'll get a good approximation. $\endgroup$