Good morning everyone! One problem have appeared. I'm trying to plot regions with different number of real zeros of the polynomial. I have this code:
k = 2
EE = 0
\[Epsilon] = 1
pyz = 1
pt = Sqrt[1]
Clear[r]
poly = r^4/
pyz^2 (pt^2 + (r^((-2 (4 k^2 - 3 k + 2))/((k - 1) (2 k -
1))) ((pt^2 - (pyz^2 + pyz^2) - \[Epsilon]*r^2) r^((4 k)/(
k - 1)) + (pyz^2 + pyz^2 + \[Epsilon]*r^2)*r^(5/(k - 1))) +
EE))
zero1d = r /. NSolve[poly == 0, r, Reals]
NumberLinePlot[zero1d]
RegionPlot[Length[zero1d] > 0, {pt, 0.0001, 100}, {pyz, 0.0001, 100}]
Thus, I could see the number of real zeros. I need to plot shaded regions for which I have 0,1,2,3,4 real positive zeros in the plane $p_t$-$p_{yz}$ (this values run from 0 to arbitrary value). But I have no thoughts how to do it. Maybe someone could help me? I think there could be used regionplot. Any help will be appreciated. Best regards.