Consider the Root objects
roots = Table[Root[-1 + 27 #1^2 - 162 #1^4 + 243 #1^6 &, i],{i,1,6}]
These can be expressed in terms trigonometric functions as follows
trig =
{-2/3 Cos[Pi/18], -2/3 Cos[5 Pi/18], -2/3 Cos[7 Pi/18],
2/3 Cos[7 Pi/18], 2/3 Cos[5 Pi/18], 2/3 Cos[Pi/18]}
This can be checked Numerically, but also exactly using the following expression:
And @@
MapThread[
PossibleZeroQ[ToNumberField[#1 - #2], Method -> "ExactAlgebraics"] &,
{roots, trig}]
True
Is there a way to have Mathematica translate between these two things? I have not been able to make FullSimplify do it. Does anyone know of something like a RootToTrig function?
Example (by Vladimir Reshetnikov):
Root[1 - 420 # + 32373 #^2 - 33276 #^3 + 11322 #^4 - 1296 #^5 + 9 #^6 &, 2]
should be converted to
Sin[π/36]^2 Sin[5π/36]^2 / (Sin[7π/36]^2 Sin[2π/9]^2)
Further Examples (by Matthew Titsworth):
Since more examples have been asked for, here is the function that spurred the original asking of this question:
Y[r_, p_] := Table[{(-1)^i Cos[(i^2 r \[Pi])/(2 p + 1)], (-1)^(i-1)^2 Sin[(i^2 r \[Pi])/(2 p + 1)]}, {i, 1, p}]
This contains plenty of examples (e.g. r=1,p=7, r=3,p=4) which do not return to their original form under the transformation
FullSimplify[ComplexExpand[ToRadicals[ToNumberField[Y[r,p],All]]]]
FullSimplify[ComplexExpand[ToRadicals[roots]]]
$\endgroup$N:meprec
. $\endgroup$Quiet
around it (it's dealing with zeros that it cannot quite recognize as such). $\endgroup$Root
objects of the type you have for ease of experimentation? $\endgroup$