I have acquired the following root from a minimization problem:
Root[1 + 2/(1 - 2 p)^4 - 3/(1 - 2 p)^2 - 4 p + 4 p^2 -
16 Sqrt[-(((-1 + p)^3 p^3)/(-1 + 2 p)^8)] + (12 p -
12 p^2) #1 + (-12 p + 12 p^2) #1^2 + (-1 + 4 p - 4 p^2) #1^3 &,
2]
For numerics this is an unnecessary nasty form and often generates small imaginary parts on the range where the value is actually real.
I'm particularly interested of the value when $0 \leq p \leq 1$. In this case I can use ToRadicals
to ease FullSimplify
ing the Root
:
FullSimplify[ToRadicals@%, 0 <= p <= 1]
$$\frac{2 \left(2 (p-1) p+\sqrt{-(p-1) p}\right)}{(1-2 p)^2}$$
Now, this is much more understandable and numerically neat. This feels to me a bit of a hack, though; I would be interested of hearing of a more generic method for this kind of root simplification with assumptions; clearly I can't expect ToRadicals
to work for all polynomials. Also, I found out that FullSimplify
with assumptions does nothing to the original Root
object...
0<=p<=1
in the minimization process? $\endgroup$