Bug fixed in 10.0.0
In Mathematica 9.0.1, it appears that ToNumberField
will not always recognize a Root
object as an explicit algebraic number.
ToNumberField[
Root[{ 1 - #1 + #1^2 - #1^3 + #1^4 - #1^5 + #1^6 &,
#1^5 + #1^3 #2 + #1 #2^2 + #2^3 - #1 #2^3 + #1^2 #2^3 - #1^3 #2^3 + #1^4 #2^3
- #1^5 #2^3 - #1^4 #2^4 - #1^2 #2^5 - #2^6 &}, {6, 6}] ]
ToNumberField::nalg: "Root[{1 -#1 + #1^2 - #1^3 + #1^4 - #1^5 + #1^6&, #1^5 + #1^3 #2 + #1 #2^2 + #2^3 - #1 #2^3 + #1^2 #2^3 -#1^3 #2^3 + #1^4 #2^3 - #1^5 #2^3 - #1^4 #2^4 - #1^2 #2^5 - #2^6 &}, {6,6}] is not an explicit algebraic number. >>"
A different root of the same polynomial works just fine:
ToNumberField[
Root[{1 - #1 + #1^2 - #1^3 + #1^4 - #1^5 + #1^6 &,
#1^5 + #1^3 #2 + #1 #2^2 + #2^3 - #1 #2^3 + #1^2 #2^3 - #1^3 #2^3 + #1^4 #2^3
- #1^5 #2^3 - #1^4 #2^4 - #1^2 #2^5 - #2^6 &}, {6, 1}] ]
AlgebraicNumber[Root[1 + #1 + #1^2 + #1^3 + #1^4 + #1^5 + #1^6 &, 2], {0, 1, 0, 0, 0, 0}]
Is this a bug, and is there any way I can work around it?
Edit: In case it matters, that first Root
expression will FullSimplify
to 1
.