AlgebraicUnitQ
Details
- AlgebraicUnitQ is typically used to test whether a number is an algebraic unity or not.
- An algebraic unit a is a number for which both a and 1/a are algebraic integers.
- AlgebraicUnitQ[a] returns False unless a is manifestly an algebraic unit.
Examples
open all close allBasic Examples (2)
Scope (4)
AlgebraicUnitQ works over integers:
AlgebraicUnitQ[1]AlgebraicUnitQ[2.4]AlgebraicUnitQ[Exp[I 2Pi / 5]]AlgebraicUnitQ[Pi]AlgebraicUnitQ[5 ^ (2 / 3) + 7 ^ (1 / 5) + 10]Root objects:
AlgebraicUnitQ[Root[1 + #1 + #1^2 + #1^3 + #1^4 + #1^5 + #1^6&, 1]]AlgebraicNumber objects:
AlgebraicUnitQ[AlgebraicNumber[Root[#1 ^ 3 - 4 #1 + 17&, 1], {1, 2, 3}]]AlgebraicUnitQ threads over lists:
AlgebraicUnitQ[{I, Sqrt[2], 1 / Sqrt[5]}]Applications (6)
Basic Applications (1)
Generate random algebraic units:
randomAlgebraicUnit[n_, m_ : 1] := Table[Root[Dot[Table[1, n + 1], # ^ Range[0, n]], RandomInteger[{1, n}]], {m}];randomAlgebraicUnit[8, 10]AlgebraicUnitQ[%]ComplexListPlot[randomAlgebraicUnit[100, 50]]Number Theory (5)
Find integers that are algebraic units:
x /. Solve[x * y == 1, {x, y}, Integers]{AlgebraicUnitQ[1], AlgebraicUnitQ[-1]}All roots of unity are algebraic units:
Exp[(2Pi Range[0, 6]I) / 6]AlgebraicUnitQ[%]An algebraic unit has norm
or
:
AlgebraicUnitQ[GoldenRatio]AlgebraicNumberNorm[GoldenRatio]{a} = NumberFieldNormRepresentatives[Sqrt[5], 5]AlgebraicNumberNorm[a]It can be represented in terms of the representative a by multiplying by a unit:
AlgebraicUnitQ[-2 - Sqrt[5]]RootReduce[Sqrt[5](-2 - Sqrt[5]) == a]Use the roots of unity to find Cyclotomic polynomials:
roots = Exp[2 Pi I / Range[3]]MinimalPolynomial[roots, x]Cyclotomic[Range[3], x]Properties & Relations (7)
An algebraic unit and its reciprocal are algebraic integers:
a = 1 - 6 6 ^ (1 / 3) + 3 36 ^ (1 / 3);AlgebraicIntegerQ [{a, 1 / a}]The reciprocal is an algebraic unit:
AlgebraicUnitQ [{a, 1 / a}]The only integers that are both algebraic integers and algebraic units are
and
:
{AlgebraicIntegerQ[1], AlgebraicUnitQ[1]}{AlgebraicIntegerQ[-1], AlgebraicUnitQ[-1]}An algebraic unit raised to a power is an algebraic unit:
Table[AlgebraicUnitQ[(1 + Sqrt[2]) ^ n], {n, 5}]Algebraics represents the domain of all algebraic numbers, including algebraic units:
Element[Exp[Pi I / 2], Algebraics]An algebraic unit has norm
or
:
AlgebraicUnitQ[{GoldenRatio, Exp[Pi I / 2]}]AlgebraicNumberNorm[{GoldenRatio, Exp[Pi I / 2]}]Use MinimalPolynomial to find the minimal polynomial of an algebraic unit:
MinimalPolynomial[4 / 5, x]Now find the minimal polynomial of its reciprocal:
MinimalPolynomial[5 / 4, x]Fundamental units of a number field are algebraic units:
NumberFieldFundamentalUnits[Root[-1 + 2#1 ^ 4&, 1]]AlgebraicUnitQ[%]Tech Notes
Related Guides
History
Text
Wolfram Research (2007), AlgebraicUnitQ, Wolfram Language function, https://reference.wolfram.com/language/ref/AlgebraicUnitQ.html.
CMS
Wolfram Language. 2007. "AlgebraicUnitQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AlgebraicUnitQ.html.
APA
Wolfram Language. (2007). AlgebraicUnitQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AlgebraicUnitQ.html
BibTeX
@misc{reference.wolfram_2026_algebraicunitq, author="Wolfram Research", title="{AlgebraicUnitQ}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/AlgebraicUnitQ.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_algebraicunitq, organization={Wolfram Research}, title={AlgebraicUnitQ}, year={2007}, url={https://reference.wolfram.com/language/ref/AlgebraicUnitQ.html}, note=[Accessed: 13-June-2026]}